From a3a2d2a4ce36e0f681236b3ab15043c0b09460b1 Mon Sep 17 00:00:00 2001 From: Chayoung You Date: Mon, 13 Apr 2020 20:02:49 +0900 Subject: Support terminal colors for Vim (#44) --- colors/ayu.vim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/colors/ayu.vim b/colors/ayu.vim index b4c70fa..9158e6b 100644 --- a/colors/ayu.vim +++ b/colors/ayu.vim @@ -192,7 +192,7 @@ exe "hi! Conceal" .s:fg_guide .s:bg_none .s:fmt_none exe "hi! CursorLineConceal" .s:fg_guide .s:bg_line .s:fmt_none -" Terminal in NVIM +" Terminal " --------- if has("nvim") let g:terminal_color_0 = s:palette.bg[s:style] @@ -213,6 +213,15 @@ if has("nvim") let g:terminal_color_15 = s:palette.comment[s:style] let g:terminal_color_background = g:terminal_color_0 let g:terminal_color_foreground = s:palette.fg[s:style] +else + let g:terminal_ansi_colors = [s:palette.bg[s:style], s:palette.markup[s:style]] + let g:terminal_ansi_colors += [s:palette.string[s:style], s:palette.accent[s:style]] + let g:terminal_ansi_colors += [s:palette.tag[s:style], s:palette.constant[s:style]] + let g:terminal_ansi_colors += [s:palette.regexp[s:style], "#FFFFFF"] + let g:terminal_ansi_colors += [s:palette.fg_idle[s:style], s:palette.error[s:style]] + let g:terminal_ansi_colors += [s:palette.string[s:style], s:palette.accent[s:style]] + let g:terminal_ansi_colors += [s:palette.tag[s:style], s:palette.constant[s:style]] + let g:terminal_ansi_colors += [s:palette.regexp[s:style], s:palette.comment[s:style]] endif -- cgit v1.2.3-18-g5258