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",
config = true,
},
{
"yorik1984/newpaper.nvim",
priority = 1000,
event = "User ThemeSwitcher",
config = function()
require("newpaper").setup({
style = "dark",
})
end,
},
{
"tiagovla/tokyodark.nvim",
priority = 1000,

View File

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