Skip to content

Commit d54fc28

Browse files
authored
1221 handle deprecated vert split (#1225)
1 parent 743e3b5 commit d54fc28

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

doc/nvim-tree-lua.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,12 @@ NvimTreeWindowPicker
872872

873873
There are also links to normal bindings to style the tree itself.
874874

875-
Normal
876-
EndOfBuffer
877-
CursorLine
878-
VertSplit
879-
CursorColumn
875+
NvimTreeNormal
876+
NvimTreeEndOfBuffer
877+
NvimTreeCursorLine
878+
NvimTreeVertSplit (deprecated, use NvimTreeWinSeparator)
879+
NvimTreeWinSeparator
880+
NvimTreeCursorColumn
880881

881882
There are also links for file highlight with git properties
882883
These all link to there Git equivalent

lua/nvim-tree/colors.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ local function get_links()
6565
EndOfBuffer = "EndOfBuffer",
6666
CursorLine = "CursorLine",
6767
VertSplit = "VertSplit",
68+
WinSeparator = "NvimTreeVertSplit",
6869
CursorColumn = "CursorColumn",
6970
FileDirty = "NvimTreeGitDirty",
7071
FileNew = "NvimTreeGitNew",

lua/nvim-tree/view.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ M.View = {
2727
"EndOfBuffer:NvimTreeEndOfBuffer",
2828
"Normal:NvimTreeNormal",
2929
"CursorLine:NvimTreeCursorLine",
30-
"VertSplit:NvimTreeVertSplit",
30+
-- #1221 WinSeparator not present in nvim 0.6.1 and some builds of 0.7.0
31+
pcall(vim.cmd, "silent hi WinSeparator") and "WinSeparator:NvimTreeWinSeparator" or "VertSplit:NvimTreeWinSeparator",
3132
"StatusLine:NvimTreeStatusLine",
3233
"StatusLineNC:NvimTreeStatuslineNC",
3334
"SignColumn:NvimTreeSignColumn",

0 commit comments

Comments
 (0)