1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add theme catppuccin

This commit is contained in:
jdhao 2022-07-28 01:32:41 +08:00
parent 3af7dd51b8
commit 644f8b6e2d
2 changed files with 9 additions and 0 deletions

View File

@ -54,6 +54,13 @@ function! s:theme_setup_dict.kanagawa() dict abort
colorscheme kanagawa colorscheme kanagawa
endfunction 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 " Theme to directory name mapping, because theme repo name is not necessarily
" the same as the theme name itself. " the same as the theme name itself.
let s:theme2dir = { let s:theme2dir = {
@ -67,6 +74,7 @@ let s:theme2dir = {
\ 'everforest' :'everforest', \ 'everforest' :'everforest',
\ 'nightfox': 'nightfox.nvim', \ 'nightfox': 'nightfox.nvim',
\ 'kanagawa': 'kanagawa.nvim', \ 'kanagawa': 'kanagawa.nvim',
\ 'catppuccin': 'catppuccin'
\ } \ }
let s:theme = utils#RandElement(keys(s:theme2dir)) let s:theme = utils#RandElement(keys(s:theme2dir))

View File

@ -121,6 +121,7 @@ packer.startup({
use({"sainnhe/everforest", opt = true}) use({"sainnhe/everforest", opt = true})
use({"EdenEast/nightfox.nvim", opt = true}) use({"EdenEast/nightfox.nvim", opt = true})
use({"rebelot/kanagawa.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 -- Show git change (change, delete, add) signs in vim sign column
use({"mhinz/vim-signify", event = 'BufEnter'}) use({"mhinz/vim-signify", event = 'BufEnter'})