From 18b24ca0a27c2e9f88b66ca7664672e178a3e5e3 Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 26 Aug 2024 00:19:22 +0200 Subject: refactor: use the "official" configuration for termux ls instead of whatever I threw together --- lua/pml68/configs/lspconfig.lua | 11 +++++++++++ lua/pml68/configs/settings/bashls.lua | 6 ------ 2 files changed, 11 insertions(+), 6 deletions(-) delete mode 100644 lua/pml68/configs/settings/bashls.lua (limited to 'lua/pml68') 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 {} -- cgit v1.2.3