summaryrefslogtreecommitdiffstats
path: root/lua/core/theme.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lua/core/theme.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/core/theme.lua b/lua/core/theme.lua
index 9d508f2..f6598ac 100644
--- a/lua/core/theme.lua
+++ b/lua/core/theme.lua
@@ -66,6 +66,10 @@ function M.switcher()
if action_state.get_selected_entry() then
actions.close(prompt_bufnr)
misc.colorscheme(action_state.get_selected_entry()[1])
+
+ -- make the colorscheme swap persistant
+ misc.replaceword("misc.colorscheme%(.+%)",
+ "misc.colorscheme('"..action_state.get_selected_entry()[1].."')")
end
end)
return true