diff options
Diffstat (limited to '.vim/colors.vim')
| -rw-r--r-- | .vim/colors.vim | 19 |
1 files changed, 17 insertions, 2 deletions
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() |
