So color, much theme
This commit is contained in:
parent
b07172688d
commit
1a47d7aef2
7 changed files with 142 additions and 27 deletions
|
|
@ -543,23 +543,6 @@ require('lazy').setup({
|
|||
},
|
||||
},
|
||||
|
||||
{ -- 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',
|
||||
priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||
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 'selenized'
|
||||
end,
|
||||
},
|
||||
|
||||
-- Highlight todo, notes, etc in comments
|
||||
{
|
||||
'folke/todo-comments.nvim',
|
||||
|
|
@ -661,11 +644,12 @@ require('lazy').setup({
|
|||
require 'kickstart.plugins.neo-tree',
|
||||
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||
|
||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||
-- This is the easiest way to modularize your config.
|
||||
--
|
||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
{ import = 'custom.plugins' },
|
||||
require 'custom.colourscheme',
|
||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||
-- This is the easiest way to modularize your config.
|
||||
--
|
||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
{ import = 'custom.plugins' },
|
||||
--
|
||||
-- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec`
|
||||
-- Or use telescope!
|
||||
|
|
|
|||
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
|
||||
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue