editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.13k stars 137 forks source link

override by runtime/indent/sass.vim #184

Open twnaing opened 2 years ago

twnaing commented 2 years ago

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

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.