diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2025-12-21 10:37:29 +0100 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2025-12-31 19:02:26 +0100 |
| commit | 5e9842baefa35b76da90c0a132a8aa4c209d9947 (patch) | |
| tree | 815fa96f1447c2ed771135c9ea4bbd5e1aff5fd3 /nvim/lua | |
| parent | ab3ac4fe4dc1ca898b56b3978a413c26bb9a0b3d (diff) | |
Move bash config into lsp config
Diffstat (limited to 'nvim/lua')
| -rw-r--r-- | nvim/lua/config/bash.lua | 5 | ||||
| -rw-r--r-- | nvim/lua/config/lsp.lua | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/nvim/lua/config/bash.lua b/nvim/lua/config/bash.lua deleted file mode 100644 index e24b5e9..0000000 --- a/nvim/lua/config/bash.lua +++ /dev/null @@ -1,5 +0,0 @@ -vim.lsp.config.bashls = { - cmd = { 'bash-language-server', 'start' }, - filetypes = { 'bash', 'sh' } -} -vim.lsp.enable 'bashls' diff --git a/nvim/lua/config/lsp.lua b/nvim/lua/config/lsp.lua index 95a0771..5a5b516 100644 --- a/nvim/lua/config/lsp.lua +++ b/nvim/lua/config/lsp.lua @@ -8,3 +8,10 @@ vim.lsp.config('jsonls', { }, }, }) + +-- requires bash-language-server, shellcheck is a nice optional addition +vim.lsp.config.bashls = { + cmd = { 'bash-language-server', 'start' }, + filetypes = { 'bash', 'sh' } +} +vim.lsp.enable('bashls') |
