joshuadavidthomas / dotfiles

MIT License
0 stars 0 forks source link

Refactor `lazy-lock.json` auto pushing when updating `lazy.nvim` plugins #21

Open joshuadavidthomas opened 10 months ago

joshuadavidthomas commented 10 months ago

Should do a yadm fetch and yadm checkout -- ~/.config/nvim/lazy-lock.json to get the latest version of the lock file.

Either need a new autocmd or adjust this one:

https://github.com/joshuadavidthomas/dotfiles/blob/380e59ea7dad6d961853c3e3af7a189d2f46f165/.config/nvim/lua/josh/autocmds.lua#L95-L121

joshuadavidthomas commented 10 months ago

If a new autocmd, probably need to target the LazyPre* events -- https://github.com/folke/lazy.nvim#-user-events

joshuadavidthomas commented 10 months ago

Alternatively, instead of having this all automatically happen, I could also add some keymaps to deal with fetching, pulling, and pushing lazy-lock.json. I would just have to remember to execute them after updating the lazy plugins. A bit more work manually, but it's a bit simpler codewise and would save the work of having to sort out the automatic updating.