So color, much theme

This commit is contained in:
Maximilian Friedersdorff 2025-10-02 17:14:11 +01:00
parent b07172688d
commit 1a47d7aef2
7 changed files with 142 additions and 27 deletions

View file

@ -0,0 +1,40 @@
local function toggleDarkLight()
print 'Running toggle dark light'
if vim.o.background == 'light' then
vim.o.background = 'dark'
else
vim.o.background = 'light'
end
end
return {
{ -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then
-- change the command in the config to whatever the name of that colorscheme is.
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'calind/selenized.nvim',
},
{ 'folke/tokyonight.nvim' },
{ 'neanias/everforest-nvim' },
{ 'ellisonleao/gruvbox.nvim' },
{
'rebelot/kanagawa.nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
lazy = false,
config = function()
---@diagnostic disable-next-line: missing-fields
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'kanagawa'
vim.api.nvim_create_autocmd('Signal', { callback = toggleDarkLight })
end,
keys = {
{ '<leader>tl', toggleDarkLight, desc = 'Toggle [L]ight mode' },
},
},
}
-- vim: ts=2 sts=2 sw=2 et

View file

@ -16,11 +16,23 @@ return {
what = 'permalink',
},
lazygit = { enabled = true },
dim = { enabled = true },
dim = {
scope = {
siblings = true,
min_size = 10,
max_size = 20,
},
animate = {
enabled = true,
easing = 'outQuad',
duration = {
step = 20,
total = 150,
},
},
},
toggle = { enabled = true },
},
init = function()
require('snacks').dim()
end,
keys = {
{
@ -50,6 +62,15 @@ return {
desc = 'Lazy[g]it (Root Dir)',
},
},
init = function()
vim.api.nvim_create_autocmd('User', {
pattern = 'VeryLazy',
callback = function()
Snacks.toggle.dim():map '<leader>td'
Snacks.toggle.zen():map '<leader>tz'
end,
})
end,
},
}