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

Why is there no hierarchy

Open pCandKa opened this issue 2 years ago • 10 comments

vim: image

vscode: image

Why is there no hierarchy, The Settings are default

pCandKa avatar Oct 27 '21 14:10 pCandKa

Which language server are you using? I have a hierarchy with tsserver.

simrat39 avatar Nov 04 '21 19:11 simrat39

I also have this issue on Python and Rust I have coc-rls and coc-pyright installed

IAMSolaara avatar Nov 08 '21 15:11 IAMSolaara

So this is a coc specific issue it seems like, i'll bring it up with the coc guys

simrat39 avatar Nov 19 '21 19:11 simrat39

Using pylsp for python in Neovim's lsp and no hierarchy, all symbols are messed up. Also tried tsserver, still no hierarchy in a ts project.

rockyzhang24 avatar Jan 30 '22 06:01 rockyzhang24

I only tried pylsp but I had no hierarchy either.

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

Same issue, I'm using pylsp through the normal client and then some other checkers such as Mypy through null-ls.

eddiebergman avatar Mar 20 '22 17:03 eddiebergman

It seems to be a pylsp implementation issue, switch to Pyright seemed to fix it #106

eddiebergman avatar Apr 18 '22 17:04 eddiebergman

Is there further information on what is missing/wrong from pylsp? Unfortunately pyright isn't an appropriate solution for me.

meshy avatar May 12 '22 08:05 meshy

Pyright was also too slow for me, I switched to just jedi-language-server instead, works really well. Again, most other external tools like linting and typing can be done through null-ls. They've extended their support to accommodate all the tools I use by this point.

In terms of what's missing, I believe the diagnostics information returned by pylsp lacked information on node-heirarchy when responding to requests from nvim but I forgot how that was encoded.

eddiebergman avatar May 12 '22 09:05 eddiebergman

Until #181 is merged you can try this instead:

use {
    "rbjorklin/symbols-outline.nvim",
    branch = "fix-outline-detection"
}

rbjorklin avatar Oct 10 '22 02:10 rbjorklin