aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChris Kempson <chriskempson@users.noreply.github.com>2017-02-26 09:44:15 +1100
committerGitHub <noreply@github.com>2017-02-26 09:44:15 +1100
commitf4ff0e535745dd71873f2aa674c9e22ac8eba390 (patch)
treeb4118ec1c545048cc4b2a9ecd015656a26379714 /templates
parentf6e70df4c43cda3f895ff07bdad2dc7cccc43966 (diff)
parentc813f0329cf4f33e63ff2a29cdcdb4bb46306a94 (diff)
Merge pull request #134 from idhx/master
Fixes :terminal colors in Neovim.
Diffstat (limited to 'templates')
-rw-r--r--templates/default.mustache26
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