summaryrefslogtreecommitdiff
path: root/.vim/colors.vim
diff options
context:
space:
mode:
authorsubh <subh@subh.space>2026-04-04 10:34:46 +0530
committersubh <subh@subh.space>2026-04-04 10:34:46 +0530
commit92811eb6050c2f2971c6ab8998b18d448ded35a0 (patch)
tree356e3fecdf88cb6728f6df5222733e1aa8547ec2 /.vim/colors.vim
parent314d760de1922128124f2a9be0494fd4f6f7effb (diff)
Departure from catppuccin to gruvboxmain
Diffstat (limited to '.vim/colors.vim')
-rw-r--r--.vim/colors.vim34
1 files changed, 21 insertions, 13 deletions
diff --git a/.vim/colors.vim b/.vim/colors.vim
index 50ecc2c..e365942 100644
--- a/.vim/colors.vim
+++ b/.vim/colors.vim
@@ -1,23 +1,31 @@
set termguicolors
set laststatus=2
-" 1. Load your existing tokyonight theme
-let g:tokyonight_enable_italic = 1
-let g:lightline = {'colorscheme' : 'tokyonight'}
+" 1. Gruvbox Material Configuration
+let g:gruvbox_material_background = 'hard'
+let g:gruvbox_material_enable_italic = 1
+let g:gruvbox_material_better_performance = 1
-" Try to load tokyonight; if it fails, it won't crash your vim
-silent! colorscheme tokyonight
+" Match the lightline theme to Gruvbox
+let g:lightline = {'colorscheme' : 'gruvbox_material'}
-" 2. THE BLACKOUT OVERRIDE
-" This removes the theme's background so it uses Ghostty's #000000
+" Load the colorscheme
+silent! colorscheme gruvbox-material
+
+" 2. THE TRANSPARENCY OVERRIDE
+" This ensures Vim doesn't paint a solid box over your wallpaper
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
+ 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
+ " Also clear the line numbers and fold columns for a cleaner look
+ highlight LineNr guibg=NONE ctermbg=NONE
+ highlight CursorLineNr guibg=NONE ctermbg=NONE
+ highlight FoldColumn guibg=NONE ctermbg=NONE
endfunction
-" Apply the override immediately and whenever a colorscheme is loaded
+" Apply the override
autocmd ColorScheme * call TransparencyOverride()
call TransparencyOverride()