From d9ff24a243750feef04636920837de19ad3a7d3c Mon Sep 17 00:00:00 2001 From: Florent Vilmart Date: Tue, 5 Nov 2024 02:29:47 +0000 Subject: [PATCH] adds bash LS --- install.sh | 4 ++++ plugin/after/lsp.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cd2b793..be95add 100755 --- a/install.sh +++ b/install.sh @@ -60,6 +60,10 @@ lang_server() { npm install -g typescript typescript-language-server } + bash() { + npm install -g bash-language-server + } + ruby() { gem install -N solargraph } diff --git a/plugin/after/lsp.lua b/plugin/after/lsp.lua index b8e7b08..40505db 100644 --- a/plugin/after/lsp.lua +++ b/plugin/after/lsp.lua @@ -7,7 +7,7 @@ local lsp_common = require('lsp_common') -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches -local servers = { "ts_ls", "solargraph", "pyright" } +local servers = { "ts_ls", "solargraph", "pyright", "bashls" } local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities()) for _, lsp in ipairs(servers) do