Luca Saccarola | feea1b4 | 2024-11-11 21:33:50 +0100 | [diff] [blame] | 1 | # https://spec.editorconfig.org/#supported-pairs |
| 2 | root = true |
| 3 | |
| 4 | [*] |
| 5 | indent_style = tab |
| 6 | tab_width = 8 |
| 7 | trim_trailing_whitespace = true |
| 8 | insert_final_newline = true |
| 9 | |
| 10 | [*.{c,h,proto}] |
| 11 | indent_size = 4 |
| 12 | |
| 13 | [*.{md,yml,sh,bat}] |
| 14 | # This will become the default after we migrate the codebase |
| 15 | indent_style = space |
| 16 | indent_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 |
| 21 | trim_trailing_whitespace = false |
Luca Saccarola | 54996ec | 2024-11-15 19:53:44 +0100 | [diff] [blame] | 22 | |
David Mandelberg | 273926e | 2025-03-05 21:07:59 +0100 | [diff] [blame] | 23 | [*.vim] |
| 24 | indent_style = space |
| 25 | indent_size = 2 |
| 26 | |
Maxim Kim | 25e833f | 2025-03-06 21:13:25 +0100 | [diff] [blame^] | 27 | [runtime/pack/dist/opt/{comment,nohlsearch}/**.vim] |
| 28 | indent_style = space |
| 29 | indent_size = 4 |
| 30 | |
Luca Saccarola | 54996ec | 2024-11-15 19:53:44 +0100 | [diff] [blame] | 31 | [runtime/doc/**.txt] |
| 32 | # It can mess up some documentation by trying to strip trailing whitespaces |
| 33 | trim_trailing_whitespace = false |
Yinzuo Jiang | 3c5d782 | 2024-12-15 10:31:19 +0100 | [diff] [blame] | 34 | |
| 35 | [src/testdir/test*.vim] |
| 36 | # Some tests need trailing whitespaces, for example `set showbreak=>>\ ` |
| 37 | trim_trailing_whitespace = false |