aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/nvim.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/plugin/nvim.lua')
-rw-r--r--runtime/plugin/nvim.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/plugin/nvim.lua b/runtime/plugin/nvim.lua
new file mode 100644
index 0000000000..815886f896
--- /dev/null
+++ b/runtime/plugin/nvim.lua
@@ -0,0 +1,7 @@
+vim.api.nvim_create_user_command('Inspect', function(cmd)
+ if cmd.bang then
+ vim.pretty_print(vim.inspect_pos())
+ else
+ vim.show_pos()
+ end
+end, { desc = 'Inspect highlights and extmarks at the cursor', bang = true })