Skip to content

Live reload Neovim plugins with ease!

License

Notifications You must be signed in to change notification settings

mskelton/live-reload.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

live-reload.nvim

Live reload Neovim plugins with ease!

This plugin is very simple and works by clearing keys from the package.loaded table so subsequent calls to require your plugin will not use the cached require.

Installation

Install with your favorite package manager (e.g. lazy.nvim).

{ "mskelton/live-reload.nvim" }

Usage

Call setup to configure the plugin to watch your plugins. The main configuration is the plugins table which accepts strings or tables describing the plugins you want to live reload as well as their path on disk. If you pass a string, the directory will be inferred from the root_dir, otherwise you can pass a dir key to the table to specify the directory name.

require('live-reload').setup({
  root_dir = "~/dev",
  plugins = {
    "my-plugin",
    { "other-plugin", dir = "other-plugin.nvim" },
  },
})

About

Live reload Neovim plugins with ease!

Topics

Resources

License

Stars

Watchers

Forks

Languages