editorconfig-vim icon indicating copy to clipboard operation
editorconfig-vim copied to clipboard

override by runtime/indent/sass.vim

Open twnaing opened this issue 2 years ago • 0 comments

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.

twnaing avatar Dec 06 '21 04:12 twnaing