Skip to content

在嵌套table中的索引数字错误 #827

Description

@rhcher

Describe the bug
在一个嵌套的表中,里层的表的数字索引在补全和hover中均显示错误。

To Reproduce
Steps to reproduce the behavior:

  1. 打开一个lua文件

  2. 写入如下内容
    image

  3. 此时如果查看变量a的信息
    image
    可以看到数字索引显示错误

  4. 尝试补全
    image
    可以看到补全菜单里显示的也是不正确的

Expected behavior
在嵌套表中显示正确的数字索引

Environment (please complete the following information):

  • OS: wsl2 Arch
  • Is WSL remote? yes
  • Client: neovim native lsp

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions