2024-11-11 21:33:50 +01:00
|
|
|
# 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
|
2024-11-15 19:53:44 +01:00
|
|
|
|
2025-03-05 21:07:59 +01:00
|
|
|
[*.vim]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 2
|
|
|
|
|
2025-03-06 21:13:25 +01:00
|
|
|
[runtime/pack/dist/opt/{comment,nohlsearch}/**.vim]
|
|
|
|
indent_style = space
|
|
|
|
indent_size = 4
|
|
|
|
|
2024-11-15 19:53:44 +01:00
|
|
|
[runtime/doc/**.txt]
|
|
|
|
# It can mess up some documentation by trying to strip trailing whitespaces
|
|
|
|
trim_trailing_whitespace = false
|
2024-12-15 10:31:19 +01:00
|
|
|
|
|
|
|
[src/testdir/test*.vim]
|
|
|
|
# Some tests need trailing whitespaces, for example `set showbreak=>>\ `
|
|
|
|
trim_trailing_whitespace = false
|