diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index 491b97d1809..4a52bbdb5fb 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -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 diff --git a/lua/nvim-tree/colors.lua b/lua/nvim-tree/colors.lua index 91986ddb729..9d361952cc2 100644 --- a/lua/nvim-tree/colors.lua +++ b/lua/nvim-tree/colors.lua @@ -65,6 +65,7 @@ local function get_links() EndOfBuffer = "EndOfBuffer", CursorLine = "CursorLine", VertSplit = "VertSplit", + WinSeparator = "NvimTreeVertSplit", CursorColumn = "CursorColumn", FileDirty = "NvimTreeGitDirty", FileNew = "NvimTreeGitNew", diff --git a/lua/nvim-tree/view.lua b/lua/nvim-tree/view.lua index b8ed3d47eb5..1cd426d4b15 100644 --- a/lua/nvim-tree/view.lua +++ b/lua/nvim-tree/view.lua @@ -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",