symbols-outline.nvim icon indicating copy to clipboard operation
symbols-outline.nvim copied to clipboard

Why are all the references of a single variable listed in the outline?

Open Ferenc- opened this issue 3 years ago • 4 comments

I am using pylsp and essentially if the source code references a variable on every line, then the outline has the same length as the code itself. Which is not really an outline IMHO, but some sort of filtering.

Screenshot from 2022-02-06 01-34-26

Is this intentional? If yes, the why? Would it be possible to have an option to turn this off?

Ferenc- avatar Feb 06 '22 00:02 Ferenc-

This is a LSP issue, consider switching to a different python lsp

simrat39 avatar Feb 22 '22 02:02 simrat39

I shall look around and compare results.

Ferenc- avatar Feb 22 '22 06:02 Ferenc-

Did you find a more promising Python LSP?

AlexSWall avatar Mar 15 '22 02:03 AlexSWall

Pyright seems to work correctly. It has most of the features from Pylsp I used except pydocstyle but using null-ls I was able to fill that in. Here's my lsp config directory if anyone also needs to do the same switch.

eddiebergman avatar Apr 18 '22 16:04 eddiebergman