A minimal Neovim plugin for browsing and switching colorschemes with a Telescope UI.
It allows you to preview themes live before selecting them.
- 🔍 Telescope-powered UI for selecting colorschemes.
- 🎨 Live preview while scrolling through themes.
- ⚡ Lazy-loaded for efficiency (via Lazy.nvim).
Add the following to your Lazy.nvim configuration:
{
"Rimkomatic/switchscheme.nvim",
lazy = true,
cmd = { "SwitchColorscheme" },
dependencies = { "nvim-telescope/telescope.nvim" },
config = function()
require("switchscheme").setup()
end,
}Then, run:
:Lazy sync| Command | Description |
|---|---|
:SwitchColorscheme |
Open the colorscheme picker UI |
:ListColorschemes |
Print all available colorschemes |
:SetColorscheme <name> |
Manually apply a colorscheme |
| Key | Action |
|---|---|
| ↑ / ↓ | Navigate themes |
<CR> |
Apply selected colorscheme |
To customize switchscheme.nvim, use:
require("switchscheme").setup({
preview = true, -- Enable live preview
layout = { width = 0.4, height = 0.4 }, -- Floating window size
persist = true, -- Save selected theme and restore it at startup
})persist defaults to false. To restore the saved theme at startup, make sure
the plugin's setup() runs during startup (for example, set lazy = false in
the Lazy.nvim plugin spec). If the plugin is loaded only by its command, the
theme will not be restored until that command loads the plugin.
PRs are welcome! To contribute:
- Fork the repo
- Create a new branch
- Make changes
- Submit a PR 🚀
🌟 Enjoy effortless theme switching in Neovim!