add theme toggler (#245)

This commit is contained in:
siduck76
2021-08-15 00:44:55 +05:30
parent ea0a221230
commit 154ba7d419
5 changed files with 40 additions and 5 deletions

View File

@@ -160,4 +160,11 @@ if check_insertNav == true then
map("i", m.prev_line, "<Down>", opt)
end
local theme_toggler = require("chadrc").ui.theme_toggler
if theme_toggler == true then
local m = user_map.misc.theme_toggle
map("n", m, ":lua require('utils').toggle_theme(require('chadrc').ui.fav_themes)<CR>", opt)
end
return M