From 6ffabeac88203b6d74afb4be4de5d3daa5dbbda8 Mon Sep 17 00:00:00 2001 From: siduck Date: Fri, 15 Mar 2024 06:04:05 +0530 Subject: [PATCH] fix theme toggle replace_word func args #294 --- lua/base46/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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