diff options
author | Chayoung You <yousbe@gmail.com> | 2020-04-13 20:02:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 14:02:49 +0300 |
commit | a3a2d2a4ce36e0f681236b3ab15043c0b09460b1 (patch) | |
tree | 19cb55259c18bcba27ddd0cc8a850286549cf025 /colors | |
parent | e851765ccfc77877272985d97d4ee698645f3d08 (diff) |
Support terminal colors for Vim (#44)
Diffstat (limited to 'colors')
-rw-r--r-- | colors/ayu.vim | 11 |
1 files changed, 10 insertions, 1 deletions
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 |