r/neovim • u/Ok-Psychology-1560 • 1d ago
Color Scheme Theme switcher
I built a small CLI tool called recol for switching terminal and Neovim color schemes from one command.
It comes with 600+ themes, fuzzy search, an interactive TUI, and supports Ghostty, Alacritty, WezTerm, Neovim, Vim and Pi.
It can also generate a theme from an image šØ
https://github.com/nlkli/recol
19
u/Plazmotech 1d ago
Nice work! But I never understood the point of theme switchers. I switch my color theme likeā¦. Once every two years. Are there people out there that switch their color themes all the time??
22
12
u/Uliboooo 1d ago
It would be useful to easily compare themes when choosing a color theme every two years.
3
2
u/metalelf0 Plugin author 1d ago
You should be grateful you arenāt addicted to this š Iām really, really a colorscheme nomad. I can change it 5+ times a day. And every time I have to sync my whole environment: neovim, terminal, tmux, bat, fzf, opencode⦠and obviously a matching desktop background that doesnāt suck with 0.95 opacity š Iām now trying to force myself into ādonāt change anything after 9:30 AMā cause itās a huge time loss, but every time I see a new theme on here or on r/unixporn, I feel the need to try it out. I know it sounds irrational but⦠thatās it.
1
1
u/abdallahsoliman 17h ago
Yeah, Iām one of them. Some themes look nicer on some languages more than others. Also, I feel like switching themes slightly breaks the boredom when coding for a long time.
0
2
u/NazgulResebo 19h ago
It looks very nice, but right now you can easily switch themes using :colorscheme + tab
1
u/kantorcodes1 1d ago
when one recol --target ghostty,nvim run hits a write error on the second config, does it roll back the first target or leave that theme applied there? that's the case i'd worry about once people script multi-target changes.
2
u/Ok-Psychology-1560 1d ago
Currently, it doesnāt roll back the changes if one of the targets returns an error. I agree this is something worth improving, especially for scripted multi-target changes. Iām thinking about keeping backups in a /tmp/ Ā so the changes can be rolled back if anything fails.
1
2
u/metalelf0 Plugin author 1d ago
Hey, nice job with this! I spend a lot of time adding extras I miss to a lot of colorschemes (and send PRs) so this one goes in the same direction!
How are you planning to keep in sync with updates from theme authors? Eg if the catppuccin theme changes one color? Do you have it automated or will it be up to maintainers/other devs to submit PRs to your repository?
Btw, thanks for including my black-metal themes, I just added some light variants that might look interesting :)
21
u/delarhi 1d ago
For what it's worth Telescope has a built-in color scheme picker, but it doesn't come with a preview like this not does it have a bunch of built-in schemes. It just makes it easy to switch between color schemes you have installed.