We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc43d6f commit 0086efaCopy full SHA for 0086efa
lua/debugprint/init.lua
@@ -101,7 +101,7 @@ local debugprint_addline = function(opts)
101
-- 'default' indent for languages like Python, where the NeoVim or Treesitter
102
-- indenter doesn't know how to indent them.
103
local current_line = vim.api.nvim_get_current_line()
104
- local leading_space = current_line:match('(%s+)') or ''
+ local leading_space = current_line:match('^(%s+)') or ''
105
106
if opts.above then
107
line_to_insert_linenr = current_line_nr - 1
0 commit comments