diff --git a/lua/base46/init.lua b/lua/base46/init.lua index cde4f0b..e0c7ab6 100644 --- a/lua/base46/init.lua +++ b/lua/base46/init.lua @@ -159,7 +159,7 @@ M.toggle_theme = function() config.ui.theme = (themes[1] == config.ui.theme and themes[2]) or themes[1] local old_theme = dofile(vim.fn.stdpath "config" .. "/lua/chadrc.lua").ui.theme - require("nvchad.utils").replace_word(old_theme, config.ui.theme) + require("nvchad.utils").replace_word('theme = "' .. old_theme, 'theme = "' .. config.ui.theme) M.load_all_highlights() end