diff options
| author | Evgeni Chasnovski <evgeni.chasnovski@gmail.com> | 2023-12-21 14:53:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-21 20:53:43 +0800 |
| commit | d431a4d410f02af2039d7c98e4e33136fd1e4849 (patch) | |
| tree | d9fb9c5c9d2e495f08e04b4e19ba922a03f6e5f6 /runtime/doc | |
| parent | 2ded2e75f4a6d9a575eeb1600e92c6bb333f8060 (diff) | |
| download | rneovim-d431a4d410f02af2039d7c98e4e33136fd1e4849.tar.gz rneovim-d431a4d410f02af2039d7c98e4e33136fd1e4849.tar.bz2 rneovim-d431a4d410f02af2039d7c98e4e33136fd1e4849.zip | |
fix(runtime): source old color scheme in bundled color schemes (#26641)
Problem:
Bundled color schemes use `:hi clear` and only define Vim's highlight
groups. This results into Nvim-specific highlight groups using
definitions from Nvim's default color scheme, which are not always
linked to a Vim's highlight group.
Solution:
Restore links to Vim's highlight groups which were present before Nvim's
default color scheme update.
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/news.txt | 3 | ||||
| -rw-r--r-- | runtime/doc/vim_diff.txt | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index f8d1dea78f..b85cbe7b95 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -106,7 +106,8 @@ The following changes may require adaptations in user config or plugins. This also might result into some color schemes looking differently due to them relying on an implicit assumptions about how highlight groups are defined by default. To account for this, define all attributes of highlight - groups explicitly or use `:colorscheme vim` to restore previous definitions. + groups explicitly. Alternatively, use `:colorscheme vim` or + `:source $VIMRUNTIME/colors/vim.lua` to restore previous definitions. • 'termguicolors' is enabled by default when Nvim is able to determine that the host terminal emulator supports 24-bit color. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index ca260246fc..0552689860 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -32,8 +32,9 @@ Defaults *nvim-defaults* ":syntax off" to |init.vim|. - Default color scheme has been updated. This can result in color schemes looking differently due to them relying on how highlight groups are defined - by default. Add ":colorscheme vim" to |init.vim| or your color scheme file to - restore the old default links and colors. + by default. Add ":colorscheme vim" to |init.vim| or + ":source $VIMRUNTIME/colors/vim.lua" to your color scheme file to restore + the old default links and colors. - 'autoindent' is enabled - 'autoread' is enabled (works in all UIs, including terminal) |