theme_reloader.mov
{ "flobilosaurus/theme_reloader.nvim" }
use { "flobilosaurus/theme_reloader.nvim" }
Plug "flobilosaurus/theme_reloader.nvim"
require("theme_reloader").setup({
light = "catppuccin-latte",
dark = "catppuccin-mocha"
})
theme_reloader plugin watches the file ~/.config/nvim/theme
for content changes.
A basic way to toggle the colorscheme from terminal:
echo "light" > ~/.config/nvim/theme
To toggle the colorscheme automatically based on daylight, you can use crontabs:
0 18 * * * echo "dark" > ~/.config/nvim/theme
0 8 * * * echo "light" > ~/.config/nvim/theme
As theme_reloader
just watches for file changes, you are completely flexible to use different tools in combination with it...
This plugin is inspired by: https://felix-kling.de/blog/2021/linux-toggle-dark-mode.html#neovim