editorconfig-vim
editorconfig-vim copied to clipboard
override by runtime/indent/sass.vim
I have this .editorconfig and this plugin installed with vim-plug
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{css,sass,scss}]
indent_style = space
indent_size = 4
when I open sass file the shiftwidth is set to 2 by
:verbose set shiftwidth
shiftwidth=2
Last set from /usr/share/nvim/runtime/indent/sass.vim line 11
How can i make sure the editorconfig-vim take precedence
- over runtime?
- tpope/vim-haml plugin (which does check
b:did_indent
)?
For runtime indent
Although I can prevent the runtime indent by setting filetype indent off
, I would like to keep it on for single file (or) project where there is no .editorconfig file.