fix comments not being readable & use local ZLS

This commit is contained in:
2025-05-10 14:57:24 +02:00
parent cad392fab5
commit 0dfa3afd00
2 changed files with 19 additions and 17 deletions

View File

@@ -8,7 +8,8 @@ require('mason').setup({
} }
}) })
local servers = { 'lua_ls', 'rust_analyzer', 'zls', 'nil_ls' } local servers = { 'lua_ls', 'rust_analyzer', 'nil_ls' }
local l_servers = { 'clangd', 'zls'}
require('mason-lspconfig').setup({ require('mason-lspconfig').setup({
-- A list of servers to automatically install if they're not already installed -- A list of servers to automatically install if they're not already installed
@@ -79,18 +80,14 @@ for _, lsp in ipairs(servers) do
} }
end end
lspconfig.clangd.setup({ for _, lsp in ipairs(l_servers) do
-- cmd = { "clangd", "--background-index", "--clang-tidy", "--log=verbose" }, lspconfig[lsp].setup({
-- init_options = {
-- fallbackFlags = { "-std=c++17" },
-- },
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
}) })
lspconfig.opts = { lspconfig.opts = {
servers = { servers = {
clangd = { [lsp] = {mason = false,},
mason = false,
}, },
}, }
} end

View File

@@ -1,6 +1,11 @@
local onedark = require("onedark") local onedark = require("onedark")
onedark.setup { onedark.setup {
style = "darker" style = "darker",
highlights = {
Comment = {fg = '#F62681'},
["@comment"] = {fg = '#F62681'},
["@lsp.type.comment"] = {fg = '#F62681'},
},
} }
onedark.load() onedark.load()