From clangd-lsp
Clangd LSP server for C and C++ — diagnostics, go-to-definition, find references, hover info, symbols, and call hierarchy for .c/.cpp files.
npx claudepluginhub anthropics/claude-plugins-official --plugin clangd-lspThis LSP server requires clangdto be installed on your system. Make sure it's available in your PATH before enabling.
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"clangd": {
"command": "clangd",
"extensionToLanguage": {
".C": "cpp",
".H": "cpp",
".c": "c",
".h": "c",
".cc": "cpp",
".cpp": "cpp",
".cxx": "cpp",
".hpp": "cpp",
".hxx": "cpp"
},
"args": [
"--background-index"
]
}
}
}clangdstdio