diff options
| author | jdhao <jdhao@hotmail.com> | 2022-07-28 01:32:41 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-07-28 01:32:41 +0800 |
| commit | 644f8b6e2dc2ff3100c1f489a4c343f64f0d992c (patch) | |
| tree | d116142a81327155f266319ae464e1a8908a9a43 | |
| parent | 3af7dd51b842000112cecda4f74df8fd0dc8df79 (diff) | |
add theme catppuccin
| -rw-r--r-- | core/themes.vim | 8 | ||||
| -rw-r--r-- | lua/plugins.lua | 1 |
2 files changed, 9 insertions, 0 deletions
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'}) |
