aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/lsp.lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-09-16 23:07:41 +0200
committerpml68 <contact@pml68.dev>2025-09-16 23:07:41 +0200
commite90a4f3f66c6e64d187b9f0cbb67133f1a77c0f2 (patch)
treeefa94e86bc58e0f50bd3ec85879c774b0fb3f88d /lua/pml68/lsp.lua
parentdocs(README): update image sizes [skip ci] (diff)
downloadnvim-e90a4f3f66c6e64d187b9f0cbb67133f1a77c0f2.tar.gz
feat: move lsp configs to `lsp/`
Diffstat (limited to '')
-rw-r--r--lua/pml68/lsp.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/lua/pml68/lsp.lua b/lua/pml68/lsp.lua
new file mode 100644
index 0000000..08a6b00
--- /dev/null
+++ b/lua/pml68/lsp.lua
@@ -0,0 +1,41 @@
+local servers = {
+ -- "asm_lsp",
+ "html",
+ "ts_ls",
+ "cssls",
+ "svelte",
+ "bashls",
+ "clangd",
+ "pyright",
+ "emmet_language_server",
+ "jsonls",
+ "rust_analyzer",
+ "kotlin_lsp",
+ "lua_ls",
+ "glsl_analyzer",
+ "csharp_ls",
+ "gopls",
+ "unocss",
+}
+
+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,
+})
+
+vim.lsp.config('*', {
+ -- capabilities = vim.tbl_deep_extend("force",
+ -- vim.lsp.protocol.make_client_capabilities(),
+ -- require('cmp_nvim_lsp').default_capabilities()),
+ on_attach = function(client, bufnr)
+ require("workspace-diagnostics").populate_workspace_diagnostics(client, bufnr)
+ end
+})
+
+vim.lsp.enable(servers)