-
plenary.nvim
plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
However even with this approach, because of the above autocommand, whenever I change init.lua the file is re-sourced and PackerCompile is executed which means that if I screwed something up, session A will also break. Moreover, I'm currently having another issue where packer.nvim when I run PackerCompile for some reason moves all plugins that are in the packer field requires and moves them from packer's start to opt, even though they shouldn't be lazy loaded. Also, nvim-web-devicons' colors dissappear in the current session when I run PackerCompile and I'm not sure why.
Basically what I'm wondering is how others have configured packer.nvim to avoid Neovim breaking while configuring it? Is it possible to run PackerCompile on save without re-sourcing init.lua, and without it affecting the current Neovim session. And alternatively, have you gotten hot-reloading of your entire config to work so that your changes show up immediatly in session A and every plugin's config is re-required as if you had restarted Neovim, without the need for a session B? It looks like plenary.nvim's reload.lua can solve this, but I'm not sure how to use it properly.
Link to my current config if anyone's curious.
I haven't used reload.lua from plenary, so I don't have advice there. If you don't mind that it isn't maintained, I use this for reloading my config without restarting nvim and it has worked just fine: https://github.com/famiu/nvim-reload