feat(nvim): add bash-language-server
This commit is contained in:
parent
884eb5e454
commit
ff7d772d46
|
@ -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,
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue