diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-15 07:49:39 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-02-15 10:50:29 +0800 |
commit | 31b3c62845fe7da41eed0089990e1540b9a41053 (patch) | |
tree | ec37101abea724286967f973bd3bf73fe432bd0d /runtime/colors/vim.lua | |
parent | 440ce0d2462677685d2f981ad3e928c28526e6d3 (diff) | |
download | rneovim-31b3c62845fe7da41eed0089990e1540b9a41053.tar.gz rneovim-31b3c62845fe7da41eed0089990e1540b9a41053.tar.bz2 rneovim-31b3c62845fe7da41eed0089990e1540b9a41053.zip |
vim-patch:9.1.0106: Visual highlight hard to read with 'termguicolors'
Problem: Visual highlight hard to read with 'termguicolors'
(Maxim Kim)
Solution: Set Visual GUI foreground to black (with background=light)
and lightgrey (with background=dark)
(Maxim Kim)
fixes: vim/vim#14024
closes: vim/vim#14025
https://github.com/vim/vim/commit/34e4a05d02a016fe230495be8f6c60ddd56f9567
Co-authored-by: Maxim Kim <habamax@gmail.com>
Diffstat (limited to 'runtime/colors/vim.lua')
-rw-r--r-- | runtime/colors/vim.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/colors/vim.lua b/runtime/colors/vim.lua index 53b232eeb5..5a29ba0ec6 100644 --- a/runtime/colors/vim.lua +++ b/runtime/colors/vim.lua @@ -231,7 +231,7 @@ if vim.o.background == 'light' then hi('SpellRare', { sp = 'Magenta', undercurl = true, ctermbg = 'LightMagenta' }) hi('TabLine', { bg = 'LightGrey', underline = true, ctermfg = 'Black', ctermbg = 'LightGrey', cterm = { underline = true } }) hi('Title', { fg = 'Magenta', bold = true, ctermfg = 'DarkMagenta' }) - hi('Visual', { bg = 'LightGrey', ctermfg = 'Black', ctermbg = 'Grey' }) + hi('Visual', { fg = 'Black', bg = 'LightGrey', ctermfg = 'Black', ctermbg = 'Grey' }) hi('WarningMsg', { fg = 'Red', ctermfg = 'DarkRed' }) hi('Comment', { fg = 'Blue', ctermfg = 'DarkBlue' }) hi('Constant', { fg = 'Magenta', ctermfg = 'DarkRed' }) @@ -270,7 +270,7 @@ else hi('SpellRare', { sp = 'Magenta', undercurl = true, ctermbg = 'Magenta' }) hi('TabLine', { bg = 'DarkGrey', underline = true, ctermfg = 'White', ctermbg = 'DarkGrey', cterm = { underline = true } }) hi('Title', { fg = 'Magenta', bold = true, ctermfg = 'LightMagenta' }) - hi('Visual', { bg = '#575757', ctermfg = 'Black', ctermbg = 'Grey' }) + hi('Visual', { fg = 'LightGrey', bg = '#575757', ctermfg = 'Black', ctermbg = 'Grey' }) hi('WarningMsg', { fg = 'Red', ctermfg = 'LightRed' }) hi('Comment', { fg = '#80a0ff', ctermfg = 'Cyan' }) hi('Constant', { fg = '#ffa0a0', ctermfg = 'Magenta' }) |