1221 handle deprecated vert split (#1225)

This commit is contained in:
Alexander Courtis 2022-05-07 19:20:58 +10:00 committed by GitHub
parent 743e3b5454
commit d54fc28045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -872,11 +872,12 @@ NvimTreeWindowPicker
There are also links to normal bindings to style the tree itself.
Normal
EndOfBuffer
CursorLine
VertSplit
CursorColumn
NvimTreeNormal
NvimTreeEndOfBuffer
NvimTreeCursorLine
NvimTreeVertSplit (deprecated, use NvimTreeWinSeparator)
NvimTreeWinSeparator
NvimTreeCursorColumn
There are also links for file highlight with git properties
These all link to there Git equivalent

View File

@ -65,6 +65,7 @@ local function get_links()
EndOfBuffer = "EndOfBuffer",
CursorLine = "CursorLine",
VertSplit = "VertSplit",
WinSeparator = "NvimTreeVertSplit",
CursorColumn = "CursorColumn",
FileDirty = "NvimTreeGitDirty",
FileNew = "NvimTreeGitNew",

View File

@ -27,7 +27,8 @@ M.View = {
"EndOfBuffer:NvimTreeEndOfBuffer",
"Normal:NvimTreeNormal",
"CursorLine:NvimTreeCursorLine",
"VertSplit:NvimTreeVertSplit",
-- #1221 WinSeparator not present in nvim 0.6.1 and some builds of 0.7.0
pcall(vim.cmd, "silent hi WinSeparator") and "WinSeparator:NvimTreeWinSeparator" or "VertSplit:NvimTreeWinSeparator",
"StatusLine:NvimTreeStatusLine",
"StatusLineNC:NvimTreeStatuslineNC",
"SignColumn:NvimTreeSignColumn",