Change to dark or light background based on a text file content.
Based on fwatch.nvim (MIT license Oliver Marriott).
mkdir -p ~/.local/state/nvim/site/pack/plugins/opt/
git clone --depth=1 https://github.com/wdomitrz/theme_watcher.nvim ~/.local/state/nvim/site/pack/plugins/opt/theme_watcher.nvimand add
packadd theme_watcher.nvimto your ~/.config/nvim/init.vim.
Using vim-plug
Plug 'wdomitrz/theme_watcher.nvim'let g:theme_watcher_file_path = '~/.config/nvim/theme.txt'
let g:theme_watcher_fallback_theme = 'dark'