diff --git a/lsp.vimrc b/lsp.vimrc index 55dfc87..510de3d 100644 --- a/lsp.vimrc +++ b/lsp.vimrc @@ -174,16 +174,26 @@ endif " Goyo and themes -if has('termguicolors') - set termguicolors +function Catppuccin() set background=dark colorscheme catppuccin_mocha let g:airline_theme = "catppuccin_mocha" -else +endfu + +function Seoul256() let g:seoul256_background = 234 let g:airline_theme = "seoul256" set background=dark colorscheme seoul256 +endfu + +if has('termguicolors') + set termguicolors + call Catppuccin() + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" +else + call Seoul256() endif autocmd! User GoyoEnter Limelight diff --git a/minimal.vimrc b/minimal.vimrc index e284319..75ae12f 100644 --- a/minimal.vimrc +++ b/minimal.vimrc @@ -165,6 +165,8 @@ if has('termguicolors') set background=dark colorscheme catppuccin_mocha let g:airline_theme = "catppuccin_mocha" + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" else echo 'no termguicolors, falling back to seoul256' let g:seoul256_background = 234