ldelossa / litee.nvim

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

tree: cleanup trees when tab closed #46

Closed ldelossa closed 2 years ago

ldelossa commented 2 years ago

under certain conditions closing a tab can leave around unused tree data structures.

by adding an autocommand that fires on TabClosed event we ensure any tree data structures associated with the closed tabs are removed from memory on next lua gc.

closes #44

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