Skip to content

JoseMM2002/walltheme.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

walltheme.nvim 🌈

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.

Features ✨

  • Automatically loads a colorscheme generated from your wallpaper.
  • Provides a :LoadWallTheme command to reload the colorscheme without restarting Neovim.
  • Simple configuration and seamless workflow.

Installation 🚀

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'

Configuration 🛠️

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()

Usage 📚

Available Commands

  • :LoadWallTheme
    Reloads the colorscheme from the file specified in colors_file.

Integrating with walltheme

  1. Use your walltheme tool to generate colors based on your image.
  2. Ensure the file ~/.cache/walltheme/colors.lua contains the generated colors.
  3. Use :LoadWallTheme to reload the colorscheme in Neovim.

Example colors.lua File

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...
}

Contributing 🖌️

Contributions are welcome! Feel free to open an issue or submit a pull request.

License 📄

This project is licensed under the MIT License.


Let me know if you need further adjustments or enhancements. 🚀


Screenshots 📸

Screenshot1

Screenshot2

Screenshot3

Screenshot4

Releases

No releases published

Packages

No packages published

Languages