Updated themes

This commit is contained in:
2024-10-14 19:42:55 +02:00
parent 4ac5ac622d
commit d893e759da
2 changed files with 9 additions and 19 deletions

View File

@@ -6,16 +6,6 @@ return {
event = "User ThemeSwitcher", event = "User ThemeSwitcher",
config = true, config = true,
}, },
{
"yorik1984/newpaper.nvim",
priority = 1000,
event = "User ThemeSwitcher",
config = function()
require("newpaper").setup({
style = "dark",
})
end,
},
{ {
"tiagovla/tokyodark.nvim", "tiagovla/tokyodark.nvim",
priority = 1000, priority = 1000,

View File

@@ -84,15 +84,15 @@ function M.themeselector(opts)
vim.cmd("colorscheme " .. selection.value) vim.cmd("colorscheme " .. selection.value)
end, end,
}) })
actions.close:enhance({ -- actions.close:enhance({
post = function() -- post = function()
local selection = action_state.get_selected_entry() -- local selection = action_state.get_selected_entry()
if selection == nil then -- if selection == nil then
vim.notify("Error while selecting theme", vim.log.levels.ERROR) -- vim.notify("Error while selecting theme", vim.log.levels.ERROR)
end -- end
exec(selection.value) -- exec(selection.value)
end, -- end,
}) -- })
return true return true
end, end,
}) })