1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add bash-language-server

This commit is contained in:
jdhao
2022-01-26 22:54:49 +08:00
parent e5c506aae3
commit 694f4d0ca1
3 changed files with 12 additions and 0 deletions

View File

@@ -116,6 +116,12 @@ lspconfig.vimls.setup({
capabilities = capabilities,
})
-- set up bash-language-server
lspconfig.bashls.setup({
on_attach = custom_attach,
capabilities = capabilities,
})
local sumneko_binary_path = vim.fn.exepath("lua-language-server")
if vim.g.is_mac or vim.g.is_linux and sumneko_binary_path ~= "" then
local sumneko_root_path = vim.fn.fnamemodify(sumneko_binary_path, ":h:h:h")