feat: add NvimTreeCursorLineNr (#1616)

This commit is contained in:
longguzzz 2022-10-01 18:51:22 +08:00 committed by GitHub
parent 45d386a359
commit 7282f7de8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -1351,6 +1351,7 @@ There are also links to normal bindings to style the tree itself.
NvimTreeNormal
NvimTreeEndOfBuffer (NonText)
NvimTreeCursorLine (CursorLine)
NvimTreeCursorLineNr (CursorLineNr)
NvimTreeVertSplit (VertSplit) [deprecated, use NvimTreeWinSeparator]
NvimTreeWinSeparator (VertSplit)
NvimTreeCursorColumn (CursorColumn)

View File

@ -66,6 +66,7 @@ local function get_links()
Normal = "Normal",
NormalNC = "NvimTreeNormal",
EndOfBuffer = "EndOfBuffer",
CursorLineNr = "CursorLineNr",
CursorLine = "CursorLine",
VertSplit = "VertSplit",
WinSeparator = "NvimTreeVertSplit",

View File

@ -28,13 +28,14 @@ M.View = {
foldmethod = "manual",
foldcolumn = "0",
cursorcolumn = false,
cursorlineopt = "line",
cursorlineopt = "both",
colorcolumn = "0",
wrap = false,
winhl = table.concat({
"EndOfBuffer:NvimTreeEndOfBuffer",
"Normal:NvimTreeNormal",
"CursorLine:NvimTreeCursorLine",
"CursorLineNr:NvimTreeCursorLineNr",
get_win_sep_hl(),
"StatusLine:NvimTreeStatusLine",
"StatusLineNC:NvimTreeStatuslineNC",