Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong document SymbolKind? #2999

Open
disrupted opened this issue Dec 19, 2024 · 0 comments
Open

wrong document SymbolKind? #2999

disrupted opened this issue Dec 19, 2024 · 0 comments

Comments

@disrupted
Copy link

How are you using the lua-language-server?

NeoVim

Which OS are you using?

MacOS

What is the issue affecting?

Annotations

Expected Behaviour

correct document symbol kinds as per https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#symbolKind

such as

  • function parameter (function(opts) end) opts: Variable
  • if: no symbol kind

Actual Behaviour

seemingly wrong symbol kinds

such as

  • opts: Constant
  • if: Package

Reproduction steps

  1. create example.lua file
local function config(opts)
  if opts then
    print('hello world')
  end
end
  1. inspect LSP document symbols (I used :Telescope lsp_document_symbols)
  2. notice wrong types for opts and if

Additional Notes

No response

Log File

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant