Skip to content

flobilosaurus/theme_reloader.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

theme reloader

Plugin to toggle the colorscheme in all currently opened Neovim instances from everywhere.
theme_reloader.mov

Installation

lazy.nvim

{ "flobilosaurus/theme_reloader.nvim" }

packer.nvim

use { "flobilosaurus/theme_reloader.nvim" }

vim-plug

Plug "flobilosaurus/theme_reloader.nvim"

Options

require("theme_reloader").setup({
  light = "catppuccin-latte",
  dark = "catppuccin-mocha"
})

How to toggle themes

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


Credits

This plugin is inspired by: https://felix-kling.de/blog/2021/linux-toggle-dark-mode.html#neovim

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages