I simple neovim plugin to keep your eyes healthy
To use Eyes Wide Bright with Lazy, add the plugin to your plugin list and configure it like this:
{
"FractalCodeRicardo/eyes-wide-bright",
config = function()
require("eyes-wide-bright").setup({
mode = "normal" -- options: "normal", "warm", "cold"
})
end
}See Eyes Wide Bright in action in this demonstration:
Click the image above to watch the video on YouTube.
In this video, you’ll see:
- How to adjust brightness levels using the default keymaps
- Switching between modes:
normal,warm, andcold - Restoring your original theme
The plugin comes with the following default keymaps:
<leader>m– Increase brightness<leader>l– Decrease brightness<leader>r– Restore your current theme
The plugin provides the following commands:
:EyesIncrease– Increase brightness:EyesDecrease– Decrease brightness:EyesReset– Restore your theme:EyesMode <normal|warm|cold>– Change the mode
You can customize the plugin by passing your own settings to the setup method.
Here’s an example:
return {
"FractalCodeRicardo/eyes-wide-bright",
config = function()
require("eyes-wide-bright").setup({
mode = 'normal', -- options: "normal", "warm", "cold"
increase_key = '<leader>m', -- keymap to increase brightness
decrease_key = '<leader>l', -- keymap to decrease brightness
reset_key = '<leader>r' -- keymap to restore your theme
})
end
}
