From c813f0329cf4f33e63ff2a29cdcdb4bb46306a94 Mon Sep 17 00:00:00 2001 From: Ivan Deschenaux Date: Sat, 21 Jan 2017 14:55:15 +0100 Subject: Fixes :terminal colors in Neovim. --- templates/default.mustache | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'templates/default.mustache') diff --git a/templates/default.mustache b/templates/default.mustache index a3fd991..1306342 100644 --- a/templates/default.mustache +++ b/templates/default.mustache @@ -59,6 +59,32 @@ else let s:cterm0F = "14" endif +" Neovim terminal colours +if has("nvim") + let g:terminal_color_0 = "#{{base00-hex}}" + let g:terminal_color_1 = "#{{base08-hex}}" + let g:terminal_color_2 = "#{{base0B-hex}}" + let g:terminal_color_3 = "#{{base0A-hex}}" + let g:terminal_color_4 = "#{{base0D-hex}}" + let g:terminal_color_5 = "#{{base0E-hex}}" + let g:terminal_color_6 = "#{{base0C-hex}}" + let g:terminal_color_7 = "#{{base05-hex}}" + let g:terminal_color_8 = "#{{base03-hex}}" + let g:terminal_color_9 = "#{{base09-hex}}" + let g:terminal_color_10 = "#{{base01-hex}}" + let g:terminal_color_11 = "#{{base02-hex}}" + let g:terminal_color_12 = "#{{base04-hex}}" + let g:terminal_color_13 = "#{{base06-hex}}" + let g:terminal_color_14 = "#{{base0F-hex}}" + let g:terminal_color_15 = "#{{base07-hex}}" + let g:terminal_color_background = g:terminal_color_0 + let g:terminal_color_foreground = g:terminal_color_7 + if &background == "light" + let g:terminal_color_background = g:terminal_color_7 + let g:terminal_color_foreground = g:terminal_color_2 + endif +endif + " Theme setup hi clear syntax reset -- cgit v1.2.3