From 6deb1b6a6bd72319db2845a53450a6039c613954 Mon Sep 17 00:00:00 2001 From: Squibid Date: Thu, 8 Feb 2024 14:50:10 -0500 Subject: make color swapper change colorscheme in config --- lua/core/theme.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/core/theme.lua') 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 -- cgit v1.2.1