mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-11-09 19:23:50 +00:00
24 lines
924 B
Lua
24 lines
924 B
Lua
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`.
|
|
'catppuccin/nvim',
|
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
|
init = function()
|
|
-- Load the colorscheme here.
|
|
vim.cmd.colorscheme 'catppuccin-mocha'
|
|
|
|
-- Toggle light/dark mode with mocha/latte
|
|
vim.keymap.set('n', '<leader>tt', function()
|
|
vim.cmd.colorscheme(vim.o.background == 'dark' and 'catppuccin-latte' or 'catppuccin-mocha')
|
|
end, { desc = '[T]oggle [T]heme' })
|
|
|
|
-- You can configure highlights by doing something like:
|
|
vim.cmd.hi 'Comment gui=none'
|
|
end,
|
|
},
|
|
}
|
|
-- vim: ts=2 sts=2 sw=2 et
|