feat: vim.inspect_pos, vim.show_pos, :Inspect

This commit is contained in:
Folke Lemaitre
2022-12-14 10:46:54 +01:00
parent 04da043244
commit ef91146efc
13 changed files with 385 additions and 11 deletions

7
runtime/plugin/nvim.lua Normal file
View File

@@ -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 })