commit 434f3d6a039401c856337926a788cd11d9dad027
parent e789d652974226ce3a763e3052a7c3d9898d875e
Author: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Date: Tue, 21 Mar 2023 14:43:40 +0200
docs: fix g:terminal_color_x terminal colors #22746
Based on this source code:
https://github.com/neovim/neovim/blob/e789d652974226ce3a763e3052a7c3d9898d875e/src/nvim/terminal.c#L271
it only respects `vim.g.terminal_color_{i}` for i from 0 to 15 inclusive.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/doc/nvim_terminal_emulator.txt b/runtime/doc/nvim_terminal_emulator.txt
@@ -115,7 +115,7 @@ You can change the defaults with a TermOpen autocommand: >vim
TERMINAL COLORS ~
The `{g,b}:terminal_color_x` variables control the terminal color palette,
-where `x` is the color index between 0 and 255 inclusive. The variables are
+where `x` is the color index between 0 and 15 inclusive. The variables are
read during |TermOpen|. The value must be a color name or hexadecimal string.
Example: >vim
let g:terminal_color_4 = '#ff0000'