I like to code with 4 spaces as a tab.
I added this to
echom "before sass file settings" set shiftwidth=4 " <---- Problem setting, keeps changing back to 2 automatically set softtabstop=4 set expandtab echom "after sass file settings"
This is the standard way I set preferences for filetypes and it usually works.
I open a
.sass file, and type
:messages I see the echom messages printed, but then if I try:
echom &shiftwidth it prints
After some searching I tried:
verbose set shiftwidth? and it prints:
shiftwidth=2 Last set from /tmp/.mount_nvimSdR08f/usr/share/nvim/runtime/indent/scss.vim
/tmp/.mount_nvimSdR08f/usr/share/nvim/runtime/indent/scss.vim does not seem like a permanent fix but I tried opening it anyways and changed this line from:
setlocal autoindent sw=2 et
setlocal autoindent sw=4 et
But the shift width still stays at 2.
I tried starting it with nvim -u NORC, but then it doesnt use my
after/ftplugin at all.
How do I prevent it from revertinf shiftwidth back to 2 (make it stay at 4)?