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 = { on_attach = on_attach,
-- fallbackFlags = { "-std=c++17" }, capabilities = capabilities,
-- }, })
on_attach = on_attach, lspconfig.opts = {
capabilities = capabilities, servers = {
}) [lsp] = {mason = false,},
lspconfig.opts = { },
servers = { }
clangd = { end
mason = false,
},
},
}

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()