hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

Memory leak on cursor move event? #38

Closed Djedouas closed 8 months ago

Djedouas commented 8 months ago

When moving cursor, line to line, I can see my RAM going up and up.

Until Ubuntu kills neovim when 100% RAM is used.

When I close the outline, the memory is freed.

Download demo video

hedyhli commented 8 months ago

I will have a look into this, for now you can set outline_items.auto_update_events.follow = {'CursorHold'}. If you're still running low on resources extremely quickly, set it to an empty table to disable it altogether or periodically :OutlineClose. Thanks!

hedyhli commented 8 months ago

It turned out to be a one-liner fix for which the problem arose from inappropriate function naming from symbols-outline.nvim. Should be fixed now, but do let me know if you're still seeing this issue.

Djedouas commented 8 months ago

Perfect! Everything is fine now!

Thanks 😉