Cache g:syntastic_sass_imports on first use
This commit is contained in:
parent
85fbb9029a
commit
b86026cdc0
@ -19,13 +19,16 @@ if !executable("sass")
|
||||
finish
|
||||
endif
|
||||
|
||||
"use compass imports if available
|
||||
let g:syntastic_sass_imports = ""
|
||||
if executable("compass")
|
||||
let g:syntastic_sass_imports = system("compass imports")
|
||||
endif
|
||||
let g:syntastic_sass_imports = 0
|
||||
|
||||
function! SyntaxCheckers_sass_GetLocList()
|
||||
"use compass imports if available
|
||||
if g:syntastic_sass_imports == 0 && executable("compass")
|
||||
let g:syntastic_sass_imports = system("compass imports")
|
||||
else
|
||||
let g:syntastic_sass_imports = ""
|
||||
endif
|
||||
|
||||
let makeprg='sass '.g:syntastic_sass_imports.' --check '.shellescape(expand('%'))
|
||||
let errorformat = '%ESyntax %trror:%m,%C on line %l of %f,%Z%m'
|
||||
let errorformat .= ',%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m'
|
||||
|
Loading…
Reference in New Issue
Block a user