1
0
Fork 0

nvim: lsp: add bash-language-server

This commit is contained in:
tastytea 2022-08-30 06:26:31 +02:00
parent d62be7cb66
commit 7135cc378c
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 8 additions and 0 deletions

View File

@ -218,6 +218,14 @@ if vim.fn.executable('qml-lsp') > 0 then
})
end
if vim.fn.executable('bash-language-server') > 0 then
lspconfig.bashls.setup({
filetypes = { 'sh', 'bash', 'ebuild' },
on_attach = on_attach,
capabilities = capabilities
})
end
require('lsp-format').setup({
sync = true -- seems to be needed to not interfere with Neogit
})