diff options
author | Squibid <me@zacharyscheiman.com> | 2024-02-08 14:50:10 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-02-08 19:50:24 -0500 |
commit | 6deb1b6a6bd72319db2845a53450a6039c613954 (patch) | |
tree | 4d62e3cf350301787e9465fdb189d08cf680f34f /lua/core/theme.lua | |
parent | 119127accf284ca1c3163226e070ba3412629993 (diff) | |
download | nvim-6deb1b6a6bd72319db2845a53450a6039c613954.tar.gz nvim-6deb1b6a6bd72319db2845a53450a6039c613954.tar.bz2 nvim-6deb1b6a6bd72319db2845a53450a6039c613954.zip |
make color swapper change colorscheme in config
Diffstat (limited to '')
-rw-r--r-- | lua/core/theme.lua | 4 |
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 |