diff options
author | Ivan Deschenaux <ivan.deschenaux@gmail.com> | 2017-01-21 14:55:15 +0100 |
---|---|---|
committer | Ivan Deschenaux <ivan.deschenaux@gmail.com> | 2017-01-21 14:55:15 +0100 |
commit | c813f0329cf4f33e63ff2a29cdcdb4bb46306a94 (patch) | |
tree | b4118ec1c545048cc4b2a9ecd015656a26379714 /templates | |
parent | f6e70df4c43cda3f895ff07bdad2dc7cccc43966 (diff) |
Fixes :terminal colors in Neovim.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/default.mustache | 26 |
1 files changed, 26 insertions, 0 deletions
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 |