From 3d3db9795352800e51ccd1cddab72437dfbf5d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C5=82osiak?= Date: Wed, 8 Sep 2021 18:51:56 +0200 Subject: [PATCH] =?UTF-8?q?add=20support=20for=20NeoVim=E2=80=99s=20termgu?= =?UTF-8?q?icolors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Terminal users have to sacrifice secondary/bold colors everywhere in terminal output for the sake of proper coloring in Vim. But there are many terminals, including Xterm who support truecolor. NeoVim supports truecolor as well, and after this change adding `set termguicolors` in `~/.config/nvim/init.vim` selectively allows for using colors outside of predefined .Xdefaults. --- colors/solarized.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors/solarized.vim b/colors/solarized.vim index 70f5223..d8beff4 100644 --- a/colors/solarized.vim +++ b/colors/solarized.vim @@ -240,7 +240,7 @@ let colors_name = "solarized" " leave the hex values out entirely in that case and include only cterm colors) " We also check to see if user has set solarized (force use of the " neutral gray monotone palette component) -if (has("gui_running") && g:solarized_degrade == 0) +if ((has("gui_running") || has("termguicolors")) && g:solarized_degrade == 0) let s:vmode = "gui" let s:base03 = "#002b36" let s:base02 = "#073642"