ldelossa / litee.nvim

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

ui: use lsp detail if file is not in current workspace #23

Closed ldelossa closed 2 years ago

ldelossa commented 2 years ago

closes #16

this commit changes the logic of marshaling a node to a UI line.

if we determine the file a symbol belongs too does not exist in the current workspace we now use the "detail" field from the symbol if possible.

if the "detail" field is nil we fall back to just providing the full path to the file.

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