diff options
Diffstat (limited to 'runtime/plugin/nvim.lua')
-rw-r--r-- | runtime/plugin/nvim.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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' }) |