mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
feat: vim.inspect_pos, vim.show_pos, :Inspect
This commit is contained in:
7
runtime/plugin/nvim.lua
Normal file
7
runtime/plugin/nvim.lua
Normal 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 })
|
||||
Reference in New Issue
Block a user