mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(treesitter): add :InspectTree command (#22477)
This commit is contained in:
@@ -5,3 +5,7 @@ vim.api.nvim_create_user_command('Inspect', function(cmd)
|
||||
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' })
|
||||
|
||||
Reference in New Issue
Block a user