Enabling Gruvbox Theme & True Color Support for Nvim

Gruvbox better suits the system since terminal's color scheme already is Gruvbox.

The changes also enable the truecolor support which is natively supported by st. The colors look better and distinguishable this way.

The last line with autocmd is for transparency. Without it, transparency wouldn't work.

I hugely recommend trying this out. You'll maybe commit the changes later.
This commit is contained in:
Emre AKYUZ 2022-10-14 10:43:34 +00:00 committed by GitHub
parent 44d740bd44
commit 1e60921946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,11 @@ Plug 'jreybert/vimagit'
Plug 'vimwiki/vimwiki' Plug 'vimwiki/vimwiki'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
Plug 'ap/vim-css-color' Plug 'morhetz/gruvbox'
call plug#end() call plug#end()
set title set title
set bg=light set bg=dark
set go=a set go=a
set mouse=a set mouse=a
set nohlsearch set nohlsearch
@ -32,6 +32,15 @@ set noruler
set laststatus=0 set laststatus=0
set noshowcmd set noshowcmd
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
let g:gruvbox_transparent_bg='1'
let g:gruvbox_contrast_dark='hard'
colorscheme gruvbox
autocmd VimEnter * hi Normal ctermbg=NONE guibg=NONE
" Some basics: " Some basics:
nnoremap c "_c nnoremap c "_c
set nocompatible set nocompatible