Drop the 2-space C/C++ override and set IndentWidth: 4 in clangd's fallback style so formatting matches the editor. Co-Authored-By: Claude Opus 5.5 <[email protected]>
24 lines
637 B
Lua
24 lines
637 B
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
clangd = {
|
|
cmd = {
|
|
"clangd",
|
|
"--background-index",
|
|
"--clang-tidy",
|
|
"--header-insertion=iwyu",
|
|
"--completion-style=detailed",
|
|
"--function-arg-placeholders",
|
|
-- ColumnLimit: 0 = fix indentation only; keep existing line
|
|
-- breaks, never rewrap or join lines. IndentWidth: 4 matches
|
|
-- the editor's shiftwidth
|
|
"--fallback-style={BasedOnStyle: LLVM, IndentWidth: 4, ColumnLimit: 0}",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|