summaryrefslogtreecommitdiff
path: root/mnv/.editorconfig
blob: d76a7f4a6c2ad8f052fec303fdd3624433c26b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# https://spec.editorconfig.org/#supported-pairs
root = true

[*]
indent_style = tab
tab_width = 8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{c,h,proto}]
indent_size = 4

[*.{md,yml,sh,bat}]
# This will become the default after we migrate the codebase
indent_style = space
indent_size = 2

[*.md]
# Markdown uses trailing whitespaces to do an hard line break
# https://spec.commonmark.org/0.31.2/#hard-line-breaks
trim_trailing_whitespace = false

[*.mnv]
indent_style = space
indent_size = 2

[runtime/pack/dist/opt/{comment,nohlsearch}/**.mnv]
indent_style = space
indent_size = 4

[runtime/doc/**.txt]
# It can mess up some documentation by trying to strip trailing whitespaces
trim_trailing_whitespace = false

[src/testdir/test*.mnv]
# Some tests need trailing whitespaces, for example `set showbreak=>>\ `
trim_trailing_whitespace = false

#
# Some custom files do not use tabs
#
[src/sign.c]
indent_style = space

[src/sound.c]
indent_style = space