A small utility for lazy.nvim to easily reload a plugin.
Note: This has now been added directly in lazy.nvim
Install the plugin with your preffered package manager:
...
return {
"MaximilianLloyd/lazy-reload.nvim",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
-- Opens the command.
{ "<leader>rl", "<cmd>lua require('lazy-reload').feed()<cr>", desc = "Reload a plugin" },
}
}
...
Not much to see here, but you can modify the command name.
{
command_name = "ReloadPlugin"
}
It can be run by using ReloadPlugin <plugin name>
.