mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
12 lines
382 B
Lua
12 lines
382 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 })
|
|
|
|
vim.api.nvim_create_user_command('InspectTree', function()
|
|
vim.treesitter.inspect_tree()
|
|
end, { desc = 'Inspect treesitter language tree for buffer' })
|