From 644f8b6e2dc2ff3100c1f489a4c343f64f0d992c Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 28 Jul 2022 01:32:41 +0800 Subject: [PATCH] add theme catppuccin --- core/themes.vim | 8 ++++++++ lua/plugins.lua | 1 + 2 files changed, 9 insertions(+) diff --git a/core/themes.vim b/core/themes.vim index a18a0b4..17b9ca2 100644 --- a/core/themes.vim +++ b/core/themes.vim @@ -54,6 +54,13 @@ function! s:theme_setup_dict.kanagawa() dict abort colorscheme kanagawa endfunction +function! s:theme_setup_dict.catppuccin() dict abort + let g:catppuccin_flavour = "frappe" " latte, frappe, macchiato, mocha + + lua require("catppuccin").setup() + colorscheme catppuccin +endfunction + " Theme to directory name mapping, because theme repo name is not necessarily " the same as the theme name itself. let s:theme2dir = { @@ -67,6 +74,7 @@ let s:theme2dir = { \ 'everforest' :'everforest', \ 'nightfox': 'nightfox.nvim', \ 'kanagawa': 'kanagawa.nvim', + \ 'catppuccin': 'catppuccin' \ } let s:theme = utils#RandElement(keys(s:theme2dir)) diff --git a/lua/plugins.lua b/lua/plugins.lua index 39304db..da47601 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -121,6 +121,7 @@ packer.startup({ use({"sainnhe/everforest", opt = true}) use({"EdenEast/nightfox.nvim", opt = true}) use({"rebelot/kanagawa.nvim", opt = true}) + use({"catppuccin/nvim", as = "catppuccin", opt = true}) -- Show git change (change, delete, add) signs in vim sign column use({"mhinz/vim-signify", event = 'BufEnter'})