More lsps

This commit is contained in:
2025-09-01 01:28:54 +02:00
parent dc95d79a11
commit c351f5edd4
2 changed files with 10 additions and 1 deletions

View File

@@ -65,6 +65,10 @@ return {
table.remove(servers_modified, i) table.remove(servers_modified, i)
break break
end end
if v == "clangd" then
table.remove(servers_modified, i)
break
end
end end
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({

View File

@@ -52,9 +52,14 @@ function M.get_lsp_servers()
end end
if vim.fn.executable("npm") == 1 then 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, "pyright")
table.insert(servers, "clangd")
table.insert(servers, "bashls") table.insert(servers, "bashls")
table.insert(servers, "cssls")
table.insert(servers, "html")
table.insert(servers, "jsonls")
else else
warn_once("npm", "[mason] Skipping pyright/clangd/bashls (npm not found)") warn_once("npm", "[mason] Skipping pyright/clangd/bashls (npm not found)")
end end