From 1e609219462a05d0e6ff0b5d529eeea81ed88d17 Mon Sep 17 00:00:00 2001 From: Emre AKYUZ Date: Fri, 14 Oct 2022 10:43:34 +0000 Subject: [PATCH] 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. --- .config/nvim/init.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index d8aaf5e1..682361b5 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -18,11 +18,11 @@ Plug 'jreybert/vimagit' Plug 'vimwiki/vimwiki' Plug 'vim-airline/vim-airline' Plug 'tpope/vim-commentary' -Plug 'ap/vim-css-color' +Plug 'morhetz/gruvbox' call plug#end() set title -set bg=light +set bg=dark set go=a set mouse=a set nohlsearch @@ -32,6 +32,15 @@ set noruler set laststatus=0 set noshowcmd +let &t_8f="\[38;2;%lu;%lu;%lum" +let &t_8b="\[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: nnoremap c "_c set nocompatible