mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-10-08 05:04:47 +08:00
feat: add debug toggle variable
This commit is contained in:
1 parent
95f69d9de6
commit
df15dee610
2 files changed
+5
-3
No files matched your search
@@ -13,7 +13,7 @@ endif
|
||||
se sw=2 ts=2
|
||||
|
||||
let s:name = 'vim-vue-plugin'
|
||||
let s:__DEBUG__ = 1
|
||||
|
||||
" Save the current JavaScript indentexpr.
|
||||
let b:vue_js_indentexpr = &indentexpr
|
||||
|
||||
@@ -105,7 +105,7 @@ function! GetVueIndent()
|
||||
endfunction
|
||||
|
||||
function! LogMsg(msg)
|
||||
if s:__DEBUG__
|
||||
if g:vim_vue_plugin_debug
|
||||
echom '['.s:name.'] '. a:msg
|
||||
endif
|
||||
endfunction
|
||||
Reference in new issue
Block a user