I use https://github.com/cakebaker/scss-syntax.vim to highlight the syntax of the SCSS (or SASS ) files on vim, which works great for syntax highlighting. However, the plugin does not come with indentation, and I am having trouble writing.
I would like to indent this way:

However, if I do gg=G , I get:

I suspect that he does not understand the nested indentation based on curly braces. I tried all the different combinations
set cindent
set nocindent
set autoindent
set smartindent
and tried using code from Tab key == 4 spaces and auto-indent after curly braces in Vim , including
set tabstop=2
set shiftwidth=2
set expandtab
... but the nested indentation set never works.
I believe that I can write my own indent file, and all I need is padding based on curly brackets with nested levels. How can I do it? If someone has an indent file for file types with similar syntax, that would be fine too.
vim indentation sass auto-indent
chibicode
source share