aboutsummaryrefslogtreecommitdiff
path: root/common/.flake/home/clang-format.nix.org
blob: 64a2a64a0766516e82c2e274c95d7334b4072ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#+title: Clang Format Default Options

#+begin_src nix :tangle ~/.flake/home/clang-format.nix :mkdirp yes
  { config, pkgs, ... }:

  {
    home.file.".clang-format".text = ''
      BasedOnStyle: LLVM
      IndentWidth: 4
      BreakBeforeBraces: Linux
      AllowShortIfStatementsOnASingleLine: false
      IndentCaseLabels: false
    '';
  }
#+end_src