1# EditorConfig configuration for nix
2# http://EditorConfig.org
3
4# Top-most EditorConfig file
5root = true
6
7# Unix-style newlines with a newline ending every file, utf-8 charset
8[*]
9end_of_line = lf
10insert_final_newline = true
11trim_trailing_whitespace = true
12charset = utf-8
13
14# Match nix files, set indent to spaces with width of two
15[*.nix]
16indent_style = space
17indent_size = 2
18
19# Match c++/shell/perl, set indent to spaces with width of four
20[*.{hpp,cc,hh,sh,pl}]
21indent_style = space
22indent_size = 4
23
24# Match diffs, avoid to trim trailing whitespace
25[*.{diff,patch}]
26trim_trailing_whitespace = false
27