neovim/runtime
Evgeni Chasnovski 4f788f78f8
vim-patch:9.1.0061: UX of visual highlighting can be improved (#27256)
Problem:  UX of visual highlighting can be improved
Solution: Improve readibility of visual highlighting,
          by setting better foreground and background
          colors

The default visual highlighting currently is nice in that it overlays
the actual syntax highlighting by using a separate distinct background
color.

However, this can cause hard to read text, because the contrast
between the actual syntax element and the background color is way too
low. That is an issue, that has been bothering colorschemes authors for
quite some time so much, that they are defining the Visual highlighting
group to use a separate foreground and background color, so that the
syntax highlighting vanishes, but the text remains readable (ref:
vim/colorschemesvim/vim#250)

So this is an attempt to perform the same fix for the default Visual
highlighting and just use a default foreground and background color
instead of using reverse.

I also removed the hard-coded changes to the Visual highlighting in
init_highlight. It's not quite clear to me, why those were there and not
added directly to the highlighting_init_<dark|light> struct.

closes: vim/vim#13663
related: vim/colorschemes#250

e6d8b4662d

Co-authored-by: Christian Brabandt <cb@256bit.org>
2024-01-29 18:39:57 +08:00
..
autoload vim-patch:a262d3f41bc5 2024-01-24 23:23:23 +01:00
colors vim-patch:9.1.0061: UX of visual highlighting can be improved (#27256) 2024-01-29 18:39:57 +08:00
compiler vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00
doc feat(api): add nvim_tabpage_set_win (#27222) 2024-01-29 15:18:33 +08:00
ftplugin vim-patch:21ce159e0561 2024-01-29 11:25:35 +08:00
indent docs: enforce "treesitter" spelling #27110 2024-01-28 17:53:14 -08:00
keymap vim-patch:caee7956a21a 2023-11-05 21:56:56 +01:00
lua feat(api): add nvim_tabpage_set_win (#27222) 2024-01-29 15:18:33 +08:00
macros vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
pack/dist/opt vim-patch:9.1.0025: A few typos in tests and justify.vim 2024-01-12 22:24:52 +01:00
plugin fix(osc52): do not use 'vim.iter' (#27218) 2024-01-26 12:06:13 -06:00
queries feat(treesitter)!: new standard capture names 2024-01-21 10:41:18 +01:00
spell
syntax vim-patch:cf8695d48cdd 2024-01-29 11:25:35 +08:00
tools
tutor docs: various fixes (#26929) 2024-01-17 14:01:39 +08:00
CMakeLists.txt build: various build improvements 2024-01-24 12:41:09 +01:00
delmenu.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
filetype.lua fix(filetype): make sure buffer is valid before call nvim_buf_call (#24922) 2023-08-30 10:14:58 -05:00
ftoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugof.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indent.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
macmap.vim
makemenu.vim vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00
menu.vim vim-patch:e059fae10044 2023-08-24 11:33:06 +09:00
mswin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
neovim.ico
nvim.appdata.xml docs: add wiki FAQ to the runtime documentation (#26539) 2023-12-13 17:31:39 +01:00
nvim.desktop
nvim.png
optwin.vim vim-patch:0b8b145bf8bf 2023-08-31 10:58:54 +02:00
synmenu.vim vim-patch:9.1.0013: Modula2 filetype support lacking (#27020) 2024-01-16 17:45:57 +00:00