make color swapper change colorscheme in config

This commit is contained in:
2024-02-08 14:50:10 -05:00
parent 119127accf
commit 6deb1b6a6b
2 changed files with 14 additions and 0 deletions

View File

@ -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