Skip to content

A simple plugin that reloads your neovim configuration painlessly.

License

Notifications You must be signed in to change notification settings

milkias17/reloader.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reloader.nvim

A simple plugin that reloads your neovim configuration painlessly. No more closing neovim and starting it again when you make a change in your configuration or when a new plugin update comes, a simple :Reload and you are off!

This is an nvim-reload fork.

Installation

Requirements

How to install?

Use your favorite package manager and install this plugin as you would any other.

Using packer:

use({ "milkias17/reloader.nvim", requires = { { "nvim-lua/plenary.nvim" } } })

Using plug:

Plug 'nvim-lua/plenary.nvim'
Plug 'milkias17/reloader.nvim'

Usage/Examples

After installation, a :Reload command will be available, just call that command whenever you want to reload your configuration.

Want to reload your configuration automatically

Just set a global variable named auto_reload_config to true and reloader.nvim will create an autocommand to do this for you!

vim.g.auto_reload_config = true

Wanted to run something before/after reloading

Reloader.nvim exposes two hooks: pre_reload_hook and post_reload_hook which are functions to run before and after reloading.

local reloader = require("reload-nvim")
reloader.post_reload_hook = function()
    require("feline").reset_highlights()
end

About

A simple plugin that reloads your neovim configuration painlessly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages