Describe the bug
Even goto_definition works on a node where the list_* do not. If the cursor is placed at data in line 2, goto_definition would jump the cursor to line 1 at data, whereas list_* does nothing
1: data = retrieveData()
2: if type(data) is list:
I found the callback is never called even locals does have length.
(navigation.lua)
49: locals.recurse_local_nodes(loc.definition, function(_, node, _, match)
Am I misunderstanding the purposes of list_*?
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Output of :checkhealth nvim_treesitter
Details
Paste the output here
Output of nvim --version
NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info
Additional context
Add any other context about the problem here.