Ajout : bash-language-server pour Neovim
This commit is contained in:
parent
bc7e7a72a2
commit
e6cc8af7e5
2 changed files with 11 additions and 0 deletions
9
config/nvim/lua/lsp/bash.lua
Normal file
9
config/nvim/lua/lsp/bash.lua
Normal 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,
|
||||||
|
})
|
|
@ -1 +1,3 @@
|
||||||
nvim_lsp = require'lspconfig'
|
nvim_lsp = require'lspconfig'
|
||||||
|
|
||||||
|
require('lsp.bash')
|
||||||
|
|
Loading…
Reference in a new issue