aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRom Grk <romgrk@users.noreply.github.com>2021-04-29 22:25:12 -0400
committerGitHub <noreply@github.com>2021-04-29 22:25:12 -0400
commit173f28c7d6e832b78a0068e6251c9ef9a82255e3 (patch)
treeb4059879177a3d87320554d1a4aac8d009ba4883
parent051cd6db324cd38e3b2f96230454ebe947fe12dd (diff)
parent5c822908c016558f98fbeae82462e35f4b2d029e (diff)
feat: add terminal colors (#13 from benwilliamgraham/master)
Added neovim terminal colors
-rw-r--r--README.md7
-rw-r--r--colors/doom-one.vim21
2 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
index 496ec02..68caaa7 100644
--- a/README.md
+++ b/README.md
@@ -14,3 +14,10 @@ Plug 'romgrk/doom-one.vim'
## Screenshot
![theme](./static/demo.png)
+
+## Options
+
+Neovim terminal coloring can be enabled as by adding the following above the plugin includes:
+```vim
+let g:doom_one_terminal_colors = 1
+```
diff --git a/colors/doom-one.vim b/colors/doom-one.vim
index 6ef4e69..2a5c518 100644
--- a/colors/doom-one.vim
+++ b/colors/doom-one.vim
@@ -200,6 +200,27 @@ call s:_('BufferTabpageFill', s:base4, s:bg_other, 'bold')
call s:_('BufferPart', s:diff_info_fg, s:diff_info_bg0, 'bold')
+if has("nvim") && g:doom_one_terminal_colors
+ let g:terminal_color_0 = s:bg
+ let g:terminal_color_1 = s:red
+ let g:terminal_color_2 = s:green_alt
+ let g:terminal_color_3 = s:orange
+ let g:terminal_color_4 = s:dark_blue
+ let g:terminal_color_5 = s:magenta
+ let g:terminal_color_6 = s:dark_cyan
+ let g:terminal_color_7 = s:fg
+ let g:terminal_color_8 = s:grey
+ let g:terminal_color_9 = s:orange
+ let g:terminal_color_10 = s:green
+ let g:terminal_color_11 = s:yellow
+ let g:terminal_color_12 = s:blue
+ let g:terminal_color_13 = s:violet
+ let g:terminal_color_14 = s:cyan
+ let g:terminal_color_15 = s:white
+ let g:terminal_color_background = s:bg
+ let g:terminal_color_foreground = s:fg
+endif
+
" }}}
" Search, Highlight, Conceal, Messages {{{