From 543a87b647e771b58941bc6cbf461a9da7b5459a Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Fri, 20 Oct 2023 22:44:25 -0700 Subject: [PATCH] update lsp servers --- lua/plugins/lsp.lua | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 2da4a04..c85dc70 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -57,18 +57,12 @@ return { end, { desc = "Format current buffer with LSP" }) end - -- Enable the following language servers - -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. - -- - -- Add any additional override configuration in the following tables. They will be passed to - -- the `settings` field of the server config. You must look up that documentation yourself. local servers = { - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, - -- tsserver = {}, - + bashls = { + bashIde = { + globPattern = "*@(.sh|.inc|.bash|.command)" + } + }, lua_ls = { Lua = { diagnostics = { globals = { 'vim' } }, @@ -76,6 +70,22 @@ return { telemetry = { enable = false }, }, }, + html = {}, + jqls = {}, + jsonls = {}, + marksman = {}, + pyright = { + python = { + analysis = { + autoSearchPaths = true, + diagnosticMode = "openFilesOnly", + useLibraryCodeForTypes = true + } + } + }, + rnix = {}, + tsserver = {}, + yamlls = {}, } --