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

View File

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