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:
@@ -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}",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user