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 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lua/pml68/configs/lspconfig.lua') 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, -- cgit v1.2.3