mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
8 lines
227 B
Lua
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 })
|