nvim/lua/plugins/lspconfig.lua

62 lines
1.4 KiB
Lua
Raw Permalink Normal View History

2023-12-14 11:49:45 +00:00
-- return {}
return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
-- -@type lspconfig.options
servers = {
2024-06-28 07:17:30 +00:00
nil_ls = {
mason = false,
settings = {
["nil"] = {
formatting = {
command = { "nixpkgs-fmt" },
},
},
},
},
2024-02-26 08:24:17 +00:00
lua_ls = {
mason = false,
},
2024-07-30 04:42:09 +00:00
-- rust_analyzer = {
-- mason = false,
-- settings = {
-- ["rust-analyzer"] = {
-- -- rustfmt = {
-- -- overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
-- -- },
-- imports = {
-- granularity = {
-- group = "module",
-- },
-- },
-- cargo = {
-- buildScripts = {
-- enable = false,
-- },
-- },
-- files = {
-- excludeDirs = {
-- "pe-template",
-- },
-- },
-- procMacro = {
-- enable = true,
-- },
-- },
-- },
-- },
2023-12-14 11:49:45 +00:00
tailwindcss = {
init_options = {
userLanguages = {
rust = "html",
},
},
filetypes = { "rust" },
},
},
},
},
}