Skip to content

list_definitions/list_definitions_toc do not work at all #60

Open
@unclenull

Description

@unclenull

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Output of :checkhealth nvim_treesitter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions