mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 13:44:46 +08:00
15 lines
356 B
VimL
15 lines
356 B
VimL
let s:name = 'vim-vue-plugin'
|
|
let s:debug = exists("g:vim_vue_plugin_debug")
|
|
\ && g:vim_vue_plugin_debug == 1
|
|
|
|
function! vue#Log(msg)
|
|
if s:debug
|
|
echom '['.s:name.']['.v:lnum.'] '.a:msg
|
|
endif
|
|
endfunction
|
|
|
|
function! vue#GetConfig(name, default)
|
|
let name = 'g:vim_vue_plugin_'.a:name
|
|
return exists(name) ? eval(name) : a:default
|
|
endfunction
|