diff options
Diffstat (limited to 'lua/pml68/configs')
| -rw-r--r-- | lua/pml68/configs/lspconfig.lua | 11 | ||||
| -rw-r--r-- | lua/pml68/configs/settings/bashls.lua | 6 |
2 files changed, 11 insertions, 6 deletions
diff --git a/lua/pml68/configs/lspconfig.lua b/lua/pml68/configs/lspconfig.lua index 46076c1..1743fd3 100644 --- a/lua/pml68/configs/lspconfig.lua +++ b/lua/pml68/configs/lspconfig.lua @@ -23,6 +23,17 @@ local servers = { "csharp_ls", } +vim.api.nvim_create_autocmd({ "BufEnter" }, { + pattern = { "build.sh", "*.subpackage.sh", "PKGBUILD", "*.install", + "makepkg.conf", "*.ebuild", "*.eclass", "color.map", "make.conf" }, + callback = function() + vim.lsp.start({ + name = "termux", + cmd = { "termux-language-server" } + }) + end, +}) + for _, server in pairs(servers) do local opts = { capabilities = capabilities, diff --git a/lua/pml68/configs/settings/bashls.lua b/lua/pml68/configs/settings/bashls.lua deleted file mode 100644 index 34360b3..0000000 --- a/lua/pml68/configs/settings/bashls.lua +++ /dev/null @@ -1,6 +0,0 @@ -vim.lsp.start({ - cmd = { "termux-language-server" }, - root_dir = vim.fn.getcwd(), -}) - -return {} |
