mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-10-22 13:57:05 +08:00
Set a variable indicating vue syntax
This commit is contained in:
1 parent
1345c64824
commit
a0f26edbaa
1 file changed
+2
-4
+2
-4
@@ -11,6 +11,8 @@ if exists("b:current_syntax") && b:current_syntax == 'vue'
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" For advanced users, this variable can be used to avoid overload
|
||||||
|
let b:current_main_syntax = 'vue'
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
"
|
"
|
||||||
" Config {{{
|
" Config {{{
|
||||||
@@ -64,10 +66,6 @@ function! s:SetCurrentSyntax(type)
|
|||||||
if a:type == 'coffee'
|
if a:type == 'coffee'
|
||||||
syntax cluster coffeeJS contains=@htmlJavaScript
|
syntax cluster coffeeJS contains=@htmlJavaScript
|
||||||
let b:current_syntax = 'vue'
|
let b:current_syntax = 'vue'
|
||||||
elseif a:type == 'less' || a:type == 'sass'
|
|
||||||
" For advanced user, this variable can be used to avoid overload
|
|
||||||
let b:current_main_syntax = 'vue'
|
|
||||||
unlet! b:current_syntax
|
|
||||||
else
|
else
|
||||||
unlet! b:current_syntax
|
unlet! b:current_syntax
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in new issue
Block a user