rm theme toggler config

This commit is contained in:
siduck 2021-12-07 14:06:34 +05:30
parent 27c33790ef
commit 2a8afcb7b6
2 changed files with 0 additions and 16 deletions

View File

@ -32,7 +32,6 @@ M.options = {
copy_del = true, -- copy deleted text ( dd key ), visual and normal mode copy_del = true, -- copy deleted text ( dd key ), visual and normal mode
insert_nav = true, -- navigation in insertmode insert_nav = true, -- navigation in insertmode
window_nav = true, window_nav = true,
theme_toggler = false,
-- updater -- updater
update_url = "https://github.com/NvChad/NvChad", update_url = "https://github.com/NvChad/NvChad",
@ -46,11 +45,6 @@ M.ui = {
hl_override = "", -- path of your file that contains highlights hl_override = "", -- path of your file that contains highlights
italic_comments = false, italic_comments = false,
theme = "onedark", -- default theme theme = "onedark", -- default theme
-- toggle between two themes, see theme_toggler mappings
theme_toggler = {
"onedark",
"gruvchad",
},
-- Change terminal bg to nvim theme's bg color so it'll match well -- Change terminal bg to nvim theme's bg color so it'll match well
-- For Ex : if you have onedark set in nvchad, set onedark's bg color on your terminal -- For Ex : if you have onedark set in nvchad, set onedark's bg color on your terminal
@ -124,7 +118,6 @@ M.mappings = {
new_buffer = "<S-t>", new_buffer = "<S-t>",
new_tab = "<C-t>b", new_tab = "<C-t>b",
save_file = "<C-s>", -- save file using :w save_file = "<C-s>", -- save file using :w
theme_toggler = "<leader>tt", -- see in ui.theme_toggler
}, },
-- navigation in insert mode, only if enabled in options -- navigation in insert mode, only if enabled in options

View File

@ -68,15 +68,6 @@ M.misc = function()
map("n", wnav.moveUp, "<C-w>k") map("n", wnav.moveUp, "<C-w>k")
map("n", wnav.moveDown, "<C-w>j") map("n", wnav.moveDown, "<C-w>j")
end end
-- check the theme toggler
if nvChad_options.theme_toggler then
map(
"n",
maps.misc.theme_toggler,
":lua require('nvchad').toggle_theme(require('core.utils').load_config().ui.theme_toggler) <CR>"
)
end
end end
local function required_mappings() local function required_mappings()