mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-12 21:43:49 -05:00
23 lines
692 B
VimL
23 lines
692 B
VimL
let files = filter(globpath(&rtp, 'ftplugin/scss.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
|
if len(files) > 0
|
|
exec 'source ' . files[0]
|
|
finish
|
|
endif
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1
|
|
|
|
if exists('b:did_indent') && b:did_indent
|
|
" be kind. allow users to override this. Does it work?
|
|
finish
|
|
endif
|
|
|
|
setlocal indentexpr=scss_indent#GetIndent(v:lnum)
|
|
|
|
" Automatically insert the current comment leader after hitting <Enter>
|
|
" in Insert mode respectively after hitting 'o' or 'O' in Normal mode
|
|
setlocal formatoptions+=ro
|
|
|
|
" SCSS comments are either /* */ or //
|
|
setlocal comments=s1:/*,mb:*,ex:*/,://
|
|
|
|
endif
|