mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(treesitter): highlight anonymous nodes in inspect_tree
**Problem:** With anonymous nodes toggled in the inspect tree, only named nodes will be highlighted when moving the cursor in the source code buffer. **Solution:** Retrieve the anonymous node at the cursor (when toggled on in the inspect tree) and highlight them when appropriate, for better clarity/specificity.
This commit is contained in:
parent
1af55bfcf2
commit
94d42a3e72
@ -183,6 +183,7 @@ local function set_inspector_cursor(treeview, lang, source_buf, inspect_buf, ins
|
|||||||
lang = lang,
|
lang = lang,
|
||||||
pos = pos,
|
pos = pos,
|
||||||
ignore_injections = false,
|
ignore_injections = false,
|
||||||
|
include_anonymous = treeview.opts.anon,
|
||||||
})
|
})
|
||||||
if not cursor_node then
|
if not cursor_node then
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user