A very simple and small plugin to cycle through a list of installed colorschemes. Written completely in Lua.
Command | Description |
---|---|
:CycleThemeForward | Goes forward in your list of colorschemes, starts at specified default/ current position |
:CycleThemeBackward | Goes backward in your list of colorschemes, starts at specified default/ current position |
:ResetTheme | Resets colorscheme to default and your position |
:TransparentBackground | Sets background to transparent, is reset in case colorscheme in changed |
- Neovim >= 0.7.0
Install the plugin using whatever plugin manager.
Caution
Make sure the listed colourschemes are already installed.
Using lazy.nvim:
{
"lokop5116/ThemeControl.nvim",
opts = { -- your configuration
colorschemes = {
-- list of installed colorschemes you will cycle through
-- example:
"carbonfox",
"tokyonight",
"rose-pine",
}
default = 1,
-- index of the colorscheme you want to set as default, loads at startup
-- set as "carbonfox" in this case
},
}
Default Options
default = 1,
defaultColors = {
-- extracts all colorschemes from your runtime path
-- all installed colorschemes + default ones
"blue",
"darkblue",
"delek",
"desert",
"elflord",
"evening",
"habamax",
"industry",
"koehler",
"morning",
"murphy",
"pablo",
"peachpuff",
"ron",
"shine",
"slate",
"torte",
"zellner",
}