use locally installed clangd instead

This commit is contained in:
2025-05-04 10:22:20 +02:00
parent 34e273b305
commit 772aa47dfe

View File

@@ -8,7 +8,7 @@ require('mason').setup({
} }
}) })
local servers = { 'lua_ls', 'rust_analyzer', 'zls', 'jdtls', 'nil_ls' } local servers = { 'lua_ls', 'rust_analyzer', 'zls', 'nil_ls' }
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
@@ -78,3 +78,17 @@ for _, lsp in ipairs(servers) do
capabilities = capabilities, capabilities = capabilities,
} }
end end
lspconfig.clangd.setup({
-- cmd = { "clangd", "--background-index", "--clang-tidy", "--log=verbose" },
-- init_options = {
-- fallbackFlags = { "-std=c++17" },
-- },
})
lspconfig.opts = {
servers = {
clangd = {
mason = false,
},
},
}