Add bash LSP config
This commit is contained in:
parent
1c7e760292
commit
d873db6299
3 changed files with 10 additions and 0 deletions
7
roles/neovim/files/lua/lsp/bash.lua
Normal file
7
roles/neovim/files/lua/lsp/bash.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
-- LSP Server for Bash
|
||||
require'lspconfig'.bashls.setup {
|
||||
on_attach = function()
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = 0, remap = false })
|
||||
vim.keymap.set('n', '<leader>gd', vim.lsp.buf.definition, { buffer = 0, remap = false })
|
||||
end,
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
-- LSP Servers
|
||||
require('lsp.lua')
|
||||
require('lsp.bash')
|
||||
|
||||
-- Treesitter
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
- clang
|
||||
- npm
|
||||
- lua-language-server
|
||||
- bash-language-server
|
||||
when:
|
||||
ansible_facts['distribution'] == 'Archlinux'
|
||||
|
||||
|
@ -38,6 +39,7 @@
|
|||
- clang
|
||||
- npm
|
||||
- lua-language-server
|
||||
- bash-language-server
|
||||
when:
|
||||
ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue