MaximilianLloyd / lazy-reload.nvim

A small utility for lazy.nvim to reload plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lazy-reload.nvim

A small utility for lazy.nvim to easily reload a plugin.

Note: This has now been added directly in lazy.nvim


Example

Example of using the plugin


Installaton

Install the plugin with your preffered package manager:

lazy.nvim

...
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" },
  }
}

...

Configuration

Not much to see here, but you can modify the command name.

{
	command_name = "ReloadPlugin"
}

Running

It can be run by using ReloadPlugin <plugin name>.

About

A small utility for lazy.nvim to reload plugins.


Languages

Language:Lua 100.0%