add rust lsp support and cleanup

This commit is contained in:
Salar Rahmanian 2024-03-23 09:42:10 -07:00
parent 6f0048ce70
commit 11315a02af
2 changed files with 11 additions and 40 deletions

View file

@ -60,12 +60,12 @@ return {
local servers = {
bashls = {
bashIde = {
globPattern = "*@(.sh|.inc|.bash|.command)"
}
globPattern = "*@(.sh|.inc|.bash|.command)",
},
},
lua_ls = {
Lua = {
diagnostics = { globals = { 'vim' } },
diagnostics = { globals = { "vim" } },
workspace = { checkThirdParty = false },
telemetry = { enable = false },
},
@ -79,11 +79,16 @@ return {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true
}
}
useLibraryCodeForTypes = true,
},
},
},
rnix = {},
rust_analyzer = {
diagnostics = {
enable = true,
},
},
tsserver = {},
yamlls = {},
}