diff --git a/lua/taken/utils/themes.lua b/lua/taken/utils/themes.lua index 5ae9a83..09b4f7d 100644 --- a/lua/taken/utils/themes.lua +++ b/lua/taken/utils/themes.lua @@ -22,6 +22,7 @@ function M.themeselector(opts) }, }, opts) + vim.cmd("SunglassesDisable") pickers .new(combined, { prompt_title = "Colorscheme", @@ -34,6 +35,7 @@ function M.themeselector(opts) actions.close(prompt_bufnr) local selection = action_state.get_selected_entry() change_theme(selection.value) + vim.cmd("SunglassesEnable") end) action_set.shift_selection:enhance({ post = function() @@ -51,6 +53,7 @@ function M.themeselector(opts) vim.notify("Error while selecting theme", vim.log.levels.ERROR) end vim.cmd("colorscheme " .. current_theme) + vim.cmd("SunglassesEnable") end, }) return true