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({
|
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,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user