From f42b5bdf3c4a59072c76294350a3895073440c94 Mon Sep 17 00:00:00 2001 From: subh Date: Mon, 9 Mar 2026 05:25:46 +0530 Subject: changes --- .vim/colors.vim | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to '.vim/colors.vim') diff --git a/.vim/colors.vim b/.vim/colors.vim index 263089f..50ecc2c 100644 --- a/.vim/colors.vim +++ b/.vim/colors.vim @@ -1,8 +1,23 @@ set termguicolors - set laststatus=2 + +" 1. Load your existing tokyonight theme let g:tokyonight_enable_italic = 1 let g:lightline = {'colorscheme' : 'tokyonight'} -colorscheme tokyonight +" Try to load tokyonight; if it fails, it won't crash your vim +silent! colorscheme tokyonight + +" 2. THE BLACKOUT OVERRIDE +" This removes the theme's background so it uses Ghostty's #000000 +function! TransparencyOverride() + highlight Normal guibg=NONE ctermbg=NONE + highlight NonText guibg=NONE ctermbg=NONE + highlight NormalNC guibg=NONE ctermbg=NONE + highlight SignColumn guibg=NONE ctermbg=NONE + highlight EndOfBuffer guibg=NONE ctermbg=NONE +endfunction +" Apply the override immediately and whenever a colorscheme is loaded +autocmd ColorScheme * call TransparencyOverride() +call TransparencyOverride() -- cgit v1.2.3