nvim: Add mappings for inspecting treesitter

Simply invokes the `:Inspect` and `:InspectTree` commands, to have
quicker access, especially while tinkering with TS for the foreseeable
future.
This commit is contained in:
Marty Oehme 2024-06-15 19:26:42 +02:00
parent a746e35d26
commit 3e13941eae
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -79,6 +79,10 @@ return {
"TSUpdate",
"TSUpdateSync",
},
keys = {
{ "<leader>si", "<cmd>Inspect<cr>", desc = "treesitter element", silent = true },
{ "<leader>sI", "<cmd>InspectTree<cr>", desc = "treesitter tree", silent = true },
},
-- show current cursor context at top of buffer
-- improves commenting plugin above by using ts