diff options
| author | Daniel Lewan <vision360.daniel@gmail.com> | 2018-09-28 13:41:44 +0200 |
|---|---|---|
| committer | Daniel Lewan <vision360.daniel@gmail.com> | 2018-09-29 14:21:31 +0200 |
| commit | 0ae88593d33ceac6ca0912cf3e7dd415bed4d376 (patch) | |
| tree | 5c81b596f14a4e7cc7ce3684cd8e83cacecc2a79 | |
| parent | 93f913705abafbd7341e4fdd897bef5f6ef4c0dd (diff) | |
add highlighting and static words to editorconfig
| -rw-r--r-- | rc/extra/editorconfig.kak | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rc/extra/editorconfig.kak b/rc/extra/editorconfig.kak index 18fc3e9e..9421e033 100644 --- a/rc/extra/editorconfig.kak +++ b/rc/extra/editorconfig.kak @@ -1,6 +1,16 @@ # http://editorconfig.org/#file-format-details # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ +# Detection +# ‾‾‾‾‾‾‾‾‾ + +hook global BufCreate .*[.](editorconfig) %{ + set-option buffer filetype ini + set-option buffer static_words indent_style indent_size tab_width \ + end_of_line charset insert_final_newline trim_trailing_whitespace root \ + latin1 utf-8 utf-8-bom utf-16be utf-16le lf cr crlf unset space tab +} + declare-option -hidden bool editorconfig_trim_trailing_whitespace false define-command editorconfig-load -params ..1 -docstring "editorconfig-load [file]: set formatting behavior according to editorconfig" %{ |
