Use 4-space indent for C/C++ in nvim

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]>
This commit is contained in:
2026-10-20 13:12:06 +01:00
co-authored by Claude Opus 5.5
parent 6f301c67fa
commit 29a780f929
3 changed files with 5 additions and 8 deletions
+3 -2
View File
@@ -12,8 +12,9 @@ return {
"--completion-style=detailed",
"--function-arg-placeholders",
-- ColumnLimit: 0 = fix indentation only; keep existing line
-- breaks, never rewrap or join lines
"--fallback-style={BasedOnStyle: LLVM, ColumnLimit: 0}",
-- breaks, never rewrap or join lines. IndentWidth: 4 matches
-- the editor's shiftwidth
"--fallback-style={BasedOnStyle: LLVM, IndentWidth: 4, ColumnLimit: 0}",
},
},
},