We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb1a9a commit cd9f20aCopy full SHA for cd9f20a
ftplugin/lua.vim
@@ -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