Ajout : bash-language-server pour Neovim

This commit is contained in:
Hippolyte Chauvin 2023-10-24 09:09:53 +02:00
parent bc7e7a72a2
commit e6cc8af7e5
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,9 @@
vim.api.nvim_create_autocmd('FileType', {
pattern = 'sh',
callback = function()
vim.lsp.start({
name = 'bash-language-server',
cmd = { 'bash-language-server', 'start' },
})
end,
})

View file

@ -1 +1,3 @@
nvim_lsp = require'lspconfig'
require('lsp.bash')