diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-12-29 00:29:16 +0100 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2023-12-29 00:54:09 +0100 |
| commit | 7709597a1d79e053587cb01f2a7d7c0f3e72d9ab (patch) | |
| tree | e6f87a0d6404dd8a50bf1a6f4b053be8059dbb94 /runtime/ftplugin | |
| parent | 419f0387276f6b1b72ad2cb56366f31d3ad6265e (diff) | |
| download | rneovim-7709597a1d79e053587cb01f2a7d7c0f3e72d9ab.tar.gz rneovim-7709597a1d79e053587cb01f2a7d7c0f3e72d9ab.tar.bz2 rneovim-7709597a1d79e053587cb01f2a7d7c0f3e72d9ab.zip | |
vim-patch:a907c9199216
runtime(sass): Provide sass_recommended_style option
https://github.com/vim/vim/commit/a907c91992167e41da41008d4370e434e324cbf2
Co-authored-by: Tim Pope <code@tpope.net>
Diffstat (limited to 'runtime/ftplugin')
| -rw-r--r-- | runtime/ftplugin/sass.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/ftplugin/sass.vim b/runtime/ftplugin/sass.vim index 9ce446137a..e650be9312 100644 --- a/runtime/ftplugin/sass.vim +++ b/runtime/ftplugin/sass.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: Sass " Maintainer: Tim Pope <vimNOSPAM@tpope.org> -" Last Change: 2019 Dec 05 +" Last Change: 2023 Dec 28 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -23,6 +23,11 @@ if &filetype =~# '\<s[ac]ss]\>' let b:undo_ftplugin .= ' isk<' endif +if get(g:, 'sass_recommended_style', 1) + setlocal shiftwidth=2 softtabstop=2 expandtab + let b:undo_ftplugin .= ' sw< sts< et<' +endif + let &l:define = '^\C\v\s*%(\@function|\@mixin|\=)|^\s*%(\$[[:alnum:]-]+:|[%.][:alnum:]-]+\s*%(\{|$))@=' let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\=' |