From f7b7d78df2772923db39dfa0c6afb07cff385460 Mon Sep 17 00:00:00 2001 From: Rohit Vighne Date: Fri, 26 Feb 2021 21:52:50 -0800 Subject: [PATCH] Define colors for the integrated terminal This sets g:terminal_ansi_colors using the already-defined variables. It makes terminal apps look normal, by setting the 16 default colors. See the Vim help for term_setansicolors() --- colors/one.vim | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/colors/one.vim b/colors/one.vim index 54747c3..8f65462 100644 --- a/colors/one.vim +++ b/colors/one.vim @@ -854,6 +854,31 @@ if has('gui_running') || has('termguicolors') || &t_Co == 88 || &t_Co == 256 call X('NERDTreeFile', s:syntax_fg, '', '') " }}} + + " Integrated terminal colors ----------------------------------------------{{{ + if has('terminal') + let g:terminal_ansi_colors = [ + \ s:syntax_bg[0], + \ s:hue_5[0], + \ s:hue_4[0], + \ s:hue_6_2[0], + \ s:hue_2[0], + \ s:hue_3[0], + \ s:hue_1[0], + \ s:mono_2[0], + \ s:mono_3[0], + \ s:hue_5[0], + \ s:hue_4[0], + \ s:hue_6_2[0], + \ s:hue_2[0], + \ s:hue_3[0], + \ s:hue_1[0], + \ s:syntax_fg[0], + \] + endif + " }}} + + " Delete functions =========================================================={{{ " delf X " delf XAPI