2025-11-20 11:52:01 +08:00
|
|
|
return {
|
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
|
event = "LazyFile",
|
|
|
|
|
dependencies = {
|
|
|
|
|
"mason.nvim",
|
|
|
|
|
{ "mason-org/mason-lspconfig.nvim", config = function() end },
|
|
|
|
|
},
|
|
|
|
|
opts = {
|
2025-11-24 21:42:54 +08:00
|
|
|
inlay_hints = {
|
|
|
|
|
enabled = false,
|
|
|
|
|
},
|
2025-11-20 11:52:01 +08:00
|
|
|
servers = {
|
|
|
|
|
-- Ensure mason installs the server
|
|
|
|
|
clangd = {
|
|
|
|
|
cmd = {
|
|
|
|
|
"clangd",
|
|
|
|
|
"--header-insertion=never",
|
|
|
|
|
"--all-scopes-completion",
|
|
|
|
|
"-j=4",
|
|
|
|
|
"--pch-storage=memory",
|
|
|
|
|
"--compile-commands-dir=build",
|
|
|
|
|
"--clang-tidy",
|
|
|
|
|
"--background-index",
|
2025-11-24 21:42:54 +08:00
|
|
|
"--completion-style=bundled",
|
|
|
|
|
"--function-arg-placeholders=false",
|
2025-11-20 11:52:01 +08:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|