nvim-config/lua/custom/plugins/catppuccin.lua

24 lines
924 B
Lua
Raw Permalink Normal View History

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`.
2024-06-01 11:00:49 +00:00
'catppuccin/nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
init = function()
-- Load the colorscheme here.
2024-06-01 11:00:49 +00:00
vim.cmd.colorscheme 'catppuccin-mocha'
2024-06-01 11:01:11 +00:00
-- 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