Files
scripts/nvim/lua/plugins/clangd.lua
T
adamfandClaude Opus 5.5 29a780f929 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]>
2026-10-20 13:12:06 +01:00

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}",
},
},
},
},
},
}