mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 12:14:24 -05:00
More lsps
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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
|
||||||
table.insert(servers, "pyright")
|
if vim.fn.executable("clangd") == 1 then
|
||||||
table.insert(servers, "clangd")
|
table.insert(servers, "clangd")
|
||||||
|
end
|
||||||
|
table.insert(servers, "pyright")
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user