Skip to content

Commit cd9f20a

Browse files
Andrew Ferrierbergercookie
authored andcommitted
Support lua.
1 parent 8bb1a9a commit cd9f20a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ftplugin/lua.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function! s:DebugStringFunBase(desc, var)
2+
let l:debug_str = 'print("' . a:desc . '" .. ' . a:var . ')'
3+
return l:debug_str
4+
endfunc
5+
6+
command! -buffer -nargs=0 AddDebugString
7+
\ put=s:DebugStringFunBase(g:DebugstringPrefixStr(), g:debugStringCounter)
8+
command! -buffer -nargs=1 AddDebugStringExpr
9+
\ put=s:DebugStringFunBase(<args> . ': ', <args>)

0 commit comments

Comments
 (0)