Files
nix-config/home-manager/clangd.nix
T
autumn-the-kitty-cat ffe63a7a0d init: init
2025-11-17 22:58:39 -05:00

38 lines
702 B
Nix

{pkgs, ...}:
{
home.packages = with pkgs; [
clang
];
home.file.".clang-format".text = ''
---
BasedOnStyle: WebKit
AlignAfterOpenBracket: Align
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBraces: Custom
ColumnLimit: 80
IndentCaseLabels: true
InsertBraces: true
TabWidth: 4
'';
}