gennaro-tedesco / nvim-possession

📌 the no-nonsense session manager
MIT License
215 stars 7 forks source link

Make fzf lazy-loadable #39

Closed dapetcu21 closed 4 months ago

dapetcu21 commented 4 months ago

This only requires the fzf-lua.previewer.builtin module when listing the sessions, which allows fzf to be lazy loaded (with folke/lazy.nvim) only when the list() action is triggered.

Otherwise, autoload = true cannot be used without loading fzf at startup as well.

dapetcu21 commented 4 months ago

Nevermind. Apparently lazy loads it anyway somehow. Might re-open after some more testing.

gennaro-tedesco commented 4 months ago

Thank you for looking into this. I remember trying a few such mechanisms back then (loading some modules within function calls rather than at import), however I did not manage to have it working consistently (generally I do not really understand too well how the different plugin managers lazy load dependencies, hence something that may be lazy loading fine with one plugin manager may not necessarily with another one).