Skip to content

Commit

Permalink
Added DEBUG flag in the source
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldot committed Nov 20, 2024
1 parent ffd8ed7 commit ee7cfa2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugin/vim9-conversion-aid.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ if !has('vim9script') || v:version < 900
finish
endif

var DEBUG = false

def Echoerr(msg: string)
echohl ErrorMsg | echom $'[vim9-conversion-aid] {msg}' | echohl None
enddef

if exists('g:vim9_conversion_aid_loaded')
if DEBUG
Echoerr('Plugin already loaded')
finish
endif

finish
endif
g:vim9_conversion_aid_loaded = true

Expand Down

0 comments on commit ee7cfa2

Please sign in to comment.