From c351f5edd4b047487c735d50fdfa7596480a69dd Mon Sep 17 00:00:00 2001 From: Jonas Hahn Date: Mon, 1 Sep 2025 01:28:54 +0200 Subject: [PATCH] More lsps --- lua/plugins/lsp.lua | 4 ++++ lua/utils/functions.lua | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 4c73719..a600e2e 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -65,6 +65,10 @@ return { table.remove(servers_modified, i) break end + if v == "clangd" then + table.remove(servers_modified, i) + break + end end require("mason-lspconfig").setup({ diff --git a/lua/utils/functions.lua b/lua/utils/functions.lua index aaafd6c..d6c0093 100644 --- a/lua/utils/functions.lua +++ b/lua/utils/functions.lua @@ -52,9 +52,14 @@ function M.get_lsp_servers() end if vim.fn.executable("npm") == 1 then + if vim.fn.executable("clangd") == 1 then + table.insert(servers, "clangd") + end table.insert(servers, "pyright") - table.insert(servers, "clangd") table.insert(servers, "bashls") + table.insert(servers, "cssls") + table.insert(servers, "html") + table.insert(servers, "jsonls") else warn_once("npm", "[mason] Skipping pyright/clangd/bashls (npm not found)") end