Clear dark and light theme for Neovim using tjdevries/colorbuddy.vim
Based on snazzybuddy by bbenzikry
" With Vim-Plug
Plug 'tjdevries/colorbuddy.nvim'
Plug 'hiszd/clrtheme.nvim'
" Enable the color scheme
colorscheme clrtheme
-- With packer
use 'tjdevries/colorbuddy.nvim'
use 'hiszd/clrtheme.nvim'
-- in your lua config
require('clrtheme')
function ThemeToggle()
if vim.g.background == 'dark' then
vim.g.background = 'light'
else
vim.g.background = 'dark'
end
require('clrtheme').reload()
end
--- ... map this function to any keybinding