552 B
552 B
Clang Format Default Options
Set global clang-format
options:
- Default to LLVM style
- Use indents of width 4
- Use Linux standards for braces (new line for functions, same line for everything else)
- If statements cannot be on a single line.
- Case labels are not indented.
{ config, pkgs, ... }:
{
home.file.".clang-format".text = ''
BasedOnStyle: LLVM
IndentWidth: 4
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
'';
}