Add a little encouragement to your life any time you write a buffer.
Inspired by Encourage for VSCode.
To install this plugin, you can use any Neovim package manager you prefer. Below are examples for some popular package managers.
use {
'r-cha/encourage.nvim',
config = function()
require('encourage').setup()
end
}
{
'r-cha/encourage.nvim',
config = true
}
After installation, you need to set up the plugin in your Neovim configuration:
require('encourage').setup()
Once set up, the plugin will display encouraging messages in the bottom right corner of the current window whenever you write a file (:w
, :write
, etc.).
You can customize the plugin's behavior during setup:
require('encourage').setup({
messages = {
"Great job!",
"Keep up the good work!",
-- Add your own messages here
},
})
If no custom messages are provided, the plugin wil use its default set of encouraging messages.
To run this plugin locally in a test Neovim instance:
-
In
test/init.lua
, replace/path/to/your/encourage.nvim
with the actual path to your plugin directory. -
Start Neovim with the test configuration:
nvim -u test/init.lua
- The plugin should now be loaded.
You can test it by writing a file and seeing the encouraging message at the bottom right of the active window.
If you want to test it alongside other plugins, edit
test/init.lua
accordingly.
If you have suggestions for improvements or new features, feel free to open an issue or pull request on the plugin's GitHub repository.
This plugin is licensed under MIT, so you're free to use, modify, and distribute it as you see fit.