VidocqH / lsp-lens.nvim

Neovim plugin for displaying references and difinition infos upon functions like JB's IDEA.
MIT License
252 stars 15 forks source link

References always include definition #24

Closed nat-418 closed 8 months ago

nat-418 commented 11 months ago

In Python, the number of References always includes the definition of, e.g., the method, even when include_declaration = false in config . I am not sure if this is intended or not, but I would prefer the number of usages .

VidocqH commented 8 months ago
image

Seems like it's correct with pyright in a single file, the references number displayed is returned by LSP, I believe the issue is with LSP itself. You can verify this by checking with 'textDocument/references' query.