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