ldelossa / litee.nvim

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

source_tracking: use uri for source tracking update #48

Closed ldelossa closed 2 years ago

ldelossa commented 2 years ago

Currently, when navigating a file unrelated to the most recently symboltree, moving around the file triggers highlight updates for the symboltree.

This is because the source_tracking function only cares about line numbers.

Make the source_tracking file care about the URI of the current buffer and the URI of the symbol, and only update highlights if these files match.