nvim-navic icon indicating copy to clipboard operation
nvim-navic copied to clipboard

SymbolInformation support

Open jason0x43 opened this issue 2 years ago • 2 comments

This PR adds support for SymbolInformation symbols and simplifies the context update logic.

SymbolInformation symbols are parsed using the existing logic, then augmented with hierarchical information by examining their positional relationships (e.g., if symbol B is within the bounds of symbol A, B is a child of A).

This has been manually tested with the svelte, html, cssls, tsserver, and sumneko language servers. Svelte, html, and cssls all use SymbolInformation, while tsserver and sumneko use DocumentSymbol. So far I haven't seen any issues.

jason0x43 avatar Jul 20 '22 02:07 jason0x43

This would resolve #39

jason0x43 avatar Jul 20 '22 02:07 jason0x43

@SmiteshP can this be merged in?

cj avatar Aug 01 '22 01:08 cj

@SmiteshP can this be merged in?

Can confirm works well with powershell_es also! Very happy to see this working Currently running Jasons branch

rolflobker avatar Aug 06 '22 12:08 rolflobker

Hey guys! Sorry I haven't been able to look at this for so long... I am traveling and don't have my laptop. Will review this soon.

SmiteshP avatar Aug 09 '22 04:08 SmiteshP

Closing in favor of #55

jason0x43 avatar Sep 04 '22 14:09 jason0x43