40 lines
1.3 KiB
Lua
40 lines
1.3 KiB
Lua
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
|