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:
parent
a746e35d26
commit
3e13941eae
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ return {
|
||||||
"TSUpdate",
|
"TSUpdate",
|
||||||
"TSUpdateSync",
|
"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
|
-- show current cursor context at top of buffer
|
||||||
-- improves commenting plugin above by using ts
|
-- improves commenting plugin above by using ts
|
||||||
|
|
Loading…
Reference in a new issue