So color, much theme
This commit is contained in:
parent
b07172688d
commit
1a47d7aef2
7 changed files with 142 additions and 27 deletions
40
home/dot_config/nvim/lua/custom/colourscheme.lua
Normal file
40
home/dot_config/nvim/lua/custom/colourscheme.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue