fix comments not being readable & use local ZLS
This commit is contained in:
@@ -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" },
|
||||
-- },
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
lspconfig.opts = {
|
||||
servers = {
|
||||
clangd = {
|
||||
mason = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
for _, lsp in ipairs(l_servers) do
|
||||
lspconfig[lsp].setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
lspconfig.opts = {
|
||||
servers = {
|
||||
[lsp] = {mason = false,},
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user