You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Normal |`g?p`| Insert a 'plain' debug line appropriate to the filetype just below the current line |`require('debugprint').debugprint()`|
106
-
| Normal |`g?P`| The same, but above the current line |`require('debugprint').debugprint({above = true})`|
107
-
| Normal |`g?v`| Insert a variable debugging line below the current line. If the cursor is on a variable name, use that, otherwise prompt for one. |`require('debugprint').debugprint({variable = true})`|
108
-
| Normal |`g?V`| The same, but above the current line |`require('debugprint').debugprint({above = true, variable = true})`|
109
-
| Normal | None by default | Always prompt for a variable name, and insert a debugging line just below the current line which outputs it |`require('debugprint').debugprint({ignore_treesitter = true, variable = true})`|
110
-
| Normal | None by default | Always prompt for a variable name, and insert a debugging line just above the current line which outputs it |`require('debugprint').debugprint({ignore_treesitter = true, above = true, variable = true})`|
111
-
| Visual |`g?v`| Find the visually select variable name, and insert a debugging line just below the current line which outputs it |`require('debugprint').debugprint({variable = true})`|
112
-
| Visual |`g?V`| Find the visually select variable name, and insert a debugging line just above the current line which outputs it |`require('debugprint').debugprint({above = true, variable = true})`|
101
+
By default, the plugin will create some keymappings, which are the standard way
102
+
to use it. There are also some function invocations which are not mapped to any
103
+
keymappings by default, but could be. This is all shown in the following table.
| Normal |`g?p`| Insert a 'plain' debug line appropriate to the filetype just below the current line |`require('debugprint').debugprint()`|
108
+
| Normal |`g?P`| The same, but above the current line |`require('debugprint').debugprint({above = true})`|
109
+
| Normal |`g?v`| Insert a variable debugging line below the current line. If the cursor is on a variable name, use that, otherwise prompt for one. |`require('debugprint').debugprint({variable = true})`|
110
+
| Normal |`g?V`| The same, but above the current line |`require('debugprint').debugprint({above = true, variable = true})`|
111
+
| Normal | None by default | Always prompt for a variable name, and insert a debugging line just below the current line which outputs it |`require('debugprint').debugprint({ignore_treesitter = true, variable = true})`|
112
+
| Normal | None by default | Always prompt for a variable name, and insert a debugging line just above the current line which outputs it |`require('debugprint').debugprint({ignore_treesitter = true, above = true, variable = true})`|
113
+
| Visual |`g?v`| Find the visually select variable name, and insert a debugging line just below the current line which outputs it |`require('debugprint').debugprint({variable = true})`|
114
+
| Visual |`g?v`| Find the visually select variable name, and insert a debugging line just below the current line which outputs it |`require('debugprint').debugprint({variable = true})`|
115
+
| Operator-pending |`g?o`| Locate a variable using a motion, and insert a debugging line just above the current line which outputs it |`require('debugprint').debugprint({above = true, variable = true})`|
116
+
| Operator-pending |`g?O`| Locate a variable using a motion, and insert a debugging line just above the current line which outputs it |`require('debugprint').debugprint({above = true, variable = true})`|
113
117
114
118
These keybindings are chosen specifically because by default in NeoVim they are
115
119
used to convert sections to ROT-13, which most folks don't use. You can disable
@@ -211,10 +215,10 @@ configuration.
211
215
212
216
The keys in the configuration are used like this:
213
217
214
-
| Type of debug line | Default keys | How debug line is constructed
0 commit comments