ldelossa / litee.nvim

A framework for building Neovim plugins
409 stars 14 forks source link

ui,tree: use workspace symbol if possible #14

Closed ldelossa closed 2 years ago

ldelossa commented 2 years ago

after researching #10 a bit more I found that certain LSPs (gopls here) provides more accurate symbol information via a workspace symbol query.

it would be nice to receive the same symbol info regardless of the lsp method being used. see: https://github.com/golang/go/issues/49690

this pr now resolves the workspace symbol for all call hierarchy items placed into the tree.

this is a bit slower (with gopls anyway) on start, however I've found that after some caching the results are snappy.

Signed-off-by: ldelossa louis.delos@gmail.com

ldelossa commented 2 years ago

image