aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/configs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-08-26 00:19:22 +0200
committerpml68 <contact@pml68.me>2024-08-26 00:19:22 +0200
commit18b24ca0a27c2e9f88b66ca7664672e178a3e5e3 (patch)
treeba7b2c2d644bfd4e4076ebd999cabef534ffbe83 /lua/pml68/configs
parentfeat: change LSP settings (diff)
downloadnvim-18b24ca0a27c2e9f88b66ca7664672e178a3e5e3.tar.gz
refactor: use the "official" configuration for termux ls instead of whatever I threw together
Diffstat (limited to '')
-rw-r--r--lua/pml68/configs/lspconfig.lua11
-rw-r--r--lua/pml68/configs/settings/bashls.lua6
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 {}