Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milkias17/reloader.nvim
A simple plugin that reloads your neovim configuration painlessly.
https://github.com/milkias17/reloader.nvim
Last synced: about 2 months ago
JSON representation
A simple plugin that reloads your neovim configuration painlessly.
- Host: GitHub
- URL: https://github.com/milkias17/reloader.nvim
- Owner: milkias17
- License: gpl-3.0
- Created: 2022-10-11T12:15:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T08:36:26.000Z (about 2 years ago)
- Last Synced: 2024-08-01T18:24:36.952Z (5 months ago)
- Language: Lua
- Size: 26.4 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- my-neovim-pluginlist - milkias17/reloader.nvim - commit/milkias17/reloader.nvim) ![](https://img.shields.io/github/commit-activity/y/milkias17/reloader.nvim) (New features / Reload Configuration)
README
# 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](https://github.com/famiu/nvim-reload) fork.
## Installation
### Requirements
- Neovim >= 0.7
- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim)### How to install?
Use your favorite package manager and install this plugin as you would any other.
Using [packer](https://github.com/wbthomason/packer.nvim):
```lua
use({ "milkias17/reloader.nvim", requires = { { "nvim-lua/plenary.nvim" } } })
```Using [plug](https://github.com/junegunn/vim-plug):
```vim
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!```lua
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.```lua
local reloader = require("reload-nvim")
reloader.post_reload_hook = function()
require("feline").reset_highlights()
end
```