From 67b9a8dc3e65ee576835d647d91168bce855b03a Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Tue, 5 Mar 2024 21:56:45 -0600 Subject: [PATCH] imachimp --- vim/vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index a29591c..1019c36 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -32,6 +32,16 @@ set showcmd set number syntax on +"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. +if (empty($TMUX) && getenv('TERM_PROGRAM') != 'Apple_Terminal') + if (has("nvim")) + let $NVIM_TUI_ENABLE_TRUE_COLOR=1 + endif + if (has("termguicolors")) + set termguicolors + endif +endif + " Global keybindings noremap :setlocal spell! spelllang=en noremap :setlocal spell! spelllang=es @@ -127,6 +137,7 @@ call plug#end() " Theme let g:gruvbox_contrast_hard=1 +let g:gruvbox_contrast_dark='hard' let g:gruvbox_italic=1 set background=dark colorscheme gruvbox