mirror of
https://github.com/tpope/vim-haml.git
synced 2025-12-08 10:04:47 +08:00
Provide a 'define' that matches Sass mixins
This commit is contained in:
@@ -8,9 +8,10 @@ if exists("b:did_ftplugin")
|
|||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl cms< inc< inex< ofu< sua<"
|
let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<"
|
||||||
|
|
||||||
setlocal commentstring=//\ %s
|
setlocal commentstring=//\ %s
|
||||||
|
setlocal define=^\\s*\\%(@mixin\\\|=\\)
|
||||||
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
|
setlocal includeexpr=substitute(v:fname,'\\%(.*/\\\|^\\)\\zs','_','')
|
||||||
setlocal omnifunc=csscomplete#CompleteCSS
|
setlocal omnifunc=csscomplete#CompleteCSS
|
||||||
setlocal suffixesadd=.sass,.scss,.css
|
setlocal suffixesadd=.sass,.scss,.css
|
||||||
|
|||||||
Reference in New Issue
Block a user