feat(treesitter): add :InspectTree command (#22477)

This commit is contained in:
Christian Clason
2023-03-02 18:03:11 +01:00
committed by GitHub
parent b0b4c31097
commit f449121764
4 changed files with 11 additions and 2 deletions

View File

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