neovim/runtime/plugin/nvim.lua
2022-12-17 13:05:31 +01:00

8 lines
227 B
Lua

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