use cursor hl group for corresponding diff in terminal vim also#23
Open
jwhite510 wants to merge 1 commit intorickhowe:masterfrom
Open
use cursor hl group for corresponding diff in terminal vim also#23jwhite510 wants to merge 1 commit intorickhowe:masterfrom
jwhite510 wants to merge 1 commit intorickhowe:masterfrom
Conversation
Owner
|
Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documentations states:
While showing the exact differences, when the cursor is moved on a difference unit, you can see its corresponding unit with |hl-Cursor| in another window, based on a |g:DiffPairVisible|. If you change its default, the corresponding unit is echoed in the command line or displayed in a popup/floating window just below the cursor position or at the mouse position.I am using terminal neovim, and after reading the documentation was changing Cursor highlight group to set the color of the corresponding difference, but it doesnt change anything. It seems that this is only the case if running GUI vim.
\'GUIColors': has('gui_running') || \has('termguicolors') && &termguicolors,If not, the hl group defaults to VertSplit hl group, but there is no mention of Vertsplit hl group in the documentation. It seems to me that the hl group should be Cursor regardless of whether gui vim is used.