WhoIsSethDaniel / mason-tool-installer.nvim

Install and upgrade third party tools automatically
MIT License
444 stars 16 forks source link

fix: Execute the autocmd when up-to-date #19

Closed geodimm closed 1 year ago

geodimm commented 1 year ago

If all plugins are up-to-date the on_close callback is never run and the MasonToolsUpdateCompleted autocmd is never executed. Calling the on_close function instead of just incrementing the number of completed updates guarantees that, regardless of whether the do_install function is called or not, the autocmd will be executed once we loop through all packages.

WhoIsSethDaniel commented 1 year ago

Very cool. I like it.