From 12648eef7dc214b0c2e9baff5cfce6d4ef98a42d Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 3 May 2025 15:12:59 +0200 Subject: [PATCH] Disable sunglasses when viewing theme --- lua/taken/utils/themes.lua | 3 +++ 1 file changed, 3 insertions(+) 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