diff options
| author | pml68 <contact@pml68.me> | 2024-08-26 00:19:22 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-08-26 00:19:22 +0200 |
| commit | 18b24ca0a27c2e9f88b66ca7664672e178a3e5e3 (patch) | |
| tree | ba7b2c2d644bfd4e4076ebd999cabef534ffbe83 /lua | |
| parent | feat: change LSP settings (diff) | |
| download | nvim-18b24ca0a27c2e9f88b66ca7664672e178a3e5e3.tar.gz | |
refactor: use the "official" configuration for termux ls instead of whatever I threw together
Diffstat (limited to 'lua')
| -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 {} |
