blob: 21d66600b9d5e8ec59a389268fce5891973688ac [file] [log] [blame]
Luca Saccarolafeea1b42024-11-11 21:33:50 +01001# https://spec.editorconfig.org/#supported-pairs
2root = true
3
4[*]
5indent_style = tab
6tab_width = 8
7trim_trailing_whitespace = true
8insert_final_newline = true
9
10[*.{c,h,proto}]
11indent_size = 4
12
13[*.{md,yml,sh,bat}]
14# This will become the default after we migrate the codebase
15indent_style = space
16indent_size = 2
17
18[*.md]
19# Markdown uses trailing whitespaces to do an hard line break
20# https://spec.commonmark.org/0.31.2/#hard-line-breaks
21trim_trailing_whitespace = false
Luca Saccarola54996ec2024-11-15 19:53:44 +010022
David Mandelberg273926e2025-03-05 21:07:59 +010023[*.vim]
24indent_style = space
25indent_size = 2
26
Maxim Kim25e833f2025-03-06 21:13:25 +010027[runtime/pack/dist/opt/{comment,nohlsearch}/**.vim]
28indent_style = space
29indent_size = 4
30
Luca Saccarola54996ec2024-11-15 19:53:44 +010031[runtime/doc/**.txt]
32# It can mess up some documentation by trying to strip trailing whitespaces
33trim_trailing_whitespace = false
Yinzuo Jiang3c5d7822024-12-15 10:31:19 +010034
35[src/testdir/test*.vim]
36# Some tests need trailing whitespaces, for example `set showbreak=>>\ `
37trim_trailing_whitespace = false