Disable sunglasses when viewing theme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user