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()`|
113
-
| Normal |`g?P`| The same, but above the current line |`require('debugprint').debugprint({above = true})`|
114
-
| 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})`|
115
-
| Normal |`g?V`| The same, but above the current line |`require('debugprint').debugprint({above = true, variable = true})`|
116
-
| 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})`|
117
-
| 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})`|
118
-
| 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})`|
119
-
| 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})`|
120
-
| 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})`|
121
-
| 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})`|
122
-
123
-
These keybindings are chosen specifically because by default in NeoVim they are
106
+
## Keymappings and Commands
107
+
108
+
By default, the plugin will create some keymappings and commands, which are the
109
+
standard way to use it. There are also some function invocations which are not
110
+
mapped to any keymappings or commands by default, but could be. This is all
| Normal |`g?p`| Insert a 'plain' debug line appropriate to the filetype just below the current line |`require('debugprint').debugprint()`|
116
+
| Normal |`g?P`| The same, but above the current line |`require('debugprint').debugprint({above = true})`|
117
+
| 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})`|
118
+
| Normal |`g?V`| The same, but above the current line |`require('debugprint').debugprint({above = true, variable = true})`|
119
+
| 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})`|
120
+
| 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})`|
121
+
| 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})`|
122
+
| 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})`|
123
+
| 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})`|
124
+
| 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})`|
125
+
| Command |`:DeleteDebugPrints`| Delete all debug lines added to this buffer. | `require('debugprint').deleteprints() |
126
+
127
+
The keymappings are chosen specifically because by default in NeoVim they are
124
128
used to convert sections to ROT-13, which most folks don't use. You can disable
125
-
them from being created by setting `create_keymaps`, and map them yourself to
126
-
something else if you prefer:
129
+
the defaults above from being created by setting `create_keymaps` and/or
130
+
`create_commands`, and map them yourself to something else if you prefer:
0 commit comments