aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-07-28 01:32:41 +0800
committerjdhao <jdhao@hotmail.com>2022-07-28 01:32:41 +0800
commit644f8b6e2dc2ff3100c1f489a4c343f64f0d992c (patch)
treed116142a81327155f266319ae464e1a8908a9a43 /core
parent3af7dd51b842000112cecda4f74df8fd0dc8df79 (diff)
add theme catppuccin
Diffstat (limited to 'core')
-rw-r--r--core/themes.vim8
1 files changed, 8 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))