feat(nvim): add bash-language-server

This commit is contained in:
Rob Watson 2023-10-07 09:32:31 +02:00
parent 884eb5e454
commit ff7d772d46
1 changed files with 13 additions and 0 deletions

View File

@ -178,3 +178,16 @@ nvim_lsp.lua_ls.setup({
}, },
on_attach = on_attach, on_attach = on_attach,
}) })
-- Bash language server
-- https://github.com/bash-lsp/bash-language-server#neovim
vim.api.nvim_create_autocmd("FileType", {
pattern = "sh",
callback = function()
vim.lsp.start({
name = "bash-language-server",
cmd = { "bash-language-server", "start" },
})
end,
})