From f449121764c19cebda7b8b2c970b76bc8121bae7 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 2 Mar 2023 18:03:11 +0100 Subject: feat(treesitter): add :InspectTree command (#22477) --- runtime/plugin/nvim.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/plugin') diff --git a/runtime/plugin/nvim.lua b/runtime/plugin/nvim.lua index 815886f896..762e9519db 100644 --- a/runtime/plugin/nvim.lua +++ b/runtime/plugin/nvim.lua @@ -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' }) -- cgit