@@ -47,8 +47,8 @@ generation. It:
47
47
- Can detect a Treesitter variable name under the cursor for some languages, or
48
48
will prompt with a sensible default. It understands Treesitter embedded
49
49
languages (e.g. JavaScript-in-HTML).
50
- - Provides | debugprint.nvim-keymappings | for normal, visual, and operator-pending
51
- modes.
50
+ - Provides | debugprint.nvim-keymappings | for normal, insert, visual, and
51
+ operator-pending modes.
52
52
- Provides | debugprint.nvim-commands | to delete debugging lines added to the
53
53
current buffer or comment/uncomment those lines.
54
54
- Can optionally move to the inserted line (or not).
@@ -123,6 +123,11 @@ following table.
123
123
Normal None Comment/uncomment debug lines -
124
124
in buffer
125
125
126
+ Insert Ctrl-G p Plain debug In-place
127
+
128
+ Insert Ctrl-G v Variable debug (always prompt In-place
129
+ for variable)
130
+
126
131
Visual g?v Variable debug Below
127
132
128
133
Visual g?V Variable debug Above
@@ -158,6 +163,10 @@ might look like this:
158
163
toggle_comment_debug_prints = nil,
159
164
delete_debug_prints = nil,
160
165
},
166
+ insert = {
167
+ plain = "<C-G> p",
168
+ variable = "<C-G> v",
169
+ },
161
170
visual = {
162
171
variable_below = "g?v",
163
172
variable_above = "g?V",
@@ -245,7 +254,7 @@ they are used to convert sections to ROT-13, which most folks don’t use.
245
254
----------------------- ----------------- --------------- -------------- ------------------ ------------- -----------
246
255
Auto-generation of :+1: :x: :+1: :+1: :x: :+1:
247
256
debug line,
248
- incl. locator info
257
+ incl. location
249
258
250
259
Print plain debug lines :+1: :+1: :x: :+1: :x: :x:
251
260
@@ -262,8 +271,12 @@ they are used to convert sections to ROT-13, which most folks don’t use.
262
271
Print variables using :+1: :x: :+1: :x: :x: :x:
263
272
motions
264
273
265
- Print variables using :+1: :+1: :+1: :+1: :+1: :x:
266
- visual mode
274
+ Add plain or variable :+1: :x: :x:: :x: :x: :x:
275
+ debug lines in insert
276
+ mode
277
+
278
+ Add variable debug :+1: :+1: :+1: :+1: :+1: :x:
279
+ lines in visual mode
267
280
268
281
Print assertions :x: :+1: :x: :x: :x: :x:
269
282
0 commit comments