walltheme.nvim
is a Neovim plugin that dynamically loads a colorscheme based on the colors generated by your Walltheme tool.
The colorscheme is derived from a file generated by walltheme
(~/.cache/walltheme/colors.lua
), making it easy to sync your Neovim theme with the colors of your wallpaper.
- Automatically loads a colorscheme generated from your wallpaper.
- Provides a
:LoadWallTheme
command to reload the colorscheme without restarting Neovim. - Simple configuration and seamless workflow.
Install the plugin using your favorite plugin manager. Here are some examples:
{
"JoseMM2002/walltheme.nvim",
config = function()
require('walltheme').setup()
end
}
use {
"JoseMM2002/walltheme.nvim",
config = function()
require('walltheme').setup()
end
}
Plug 'JoseMM2002/walltheme.nvim'
By default, walltheme.nvim
loads colors from the ~/.cache/walltheme/colors.lua
file. If the file doesn't exist, the plugin will display a warning.
require('walltheme').setup()
:LoadWallTheme
Reloads the colorscheme from the file specified incolors_file
.
- Use your
walltheme
tool to generate colors based on your image. - Ensure the file
~/.cache/walltheme/colors.lua
contains the generated colors. - Use
:LoadWallTheme
to reload the colorscheme in Neovim.
The colors.lua
file should export a table of colors. For example:
return {
bg = "#1E1E2E",
fg = "#CDD6F4",
color0 = "#F38BA8",
color1 = "#A6E3A1",
color2 = "#89B4FA",
color3 = "#F9E2AF",
-- more colors...
}
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Let me know if you need further adjustments or enhancements. 🚀