From 98b76ff0a2f2725b6c0d1b7491ec85ca760c9f3f Mon Sep 17 00:00:00 2001 From: James Tan Date: Sat, 6 May 2023 13:33:17 +0800 Subject: [PATCH] feat: add NvimTreeNormalFloat (#2167) * feat: add `NormalFloat` hl for floating windows * fix: follow default floatwin bg color --------- Co-authored-by: Alexander Courtis --- doc/nvim-tree-lua.txt | 1 + lua/nvim-tree/colors.lua | 1 + lua/nvim-tree/help.lua | 3 ++- lua/nvim-tree/view.lua | 3 ++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index f085647c..8a3f6969 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -2065,6 +2065,7 @@ NvimTreeWindowPicker There are also links to normal bindings to style the tree itself. NvimTreeNormal +NvimTreeNormalFloat NvimTreeEndOfBuffer (NonText) NvimTreeCursorLine (CursorLine) NvimTreeCursorLineNr (CursorLineNr) diff --git a/lua/nvim-tree/colors.lua b/lua/nvim-tree/colors.lua index c7b92dd1..863e5075 100644 --- a/lua/nvim-tree/colors.lua +++ b/lua/nvim-tree/colors.lua @@ -66,6 +66,7 @@ local function get_links() OpenedFolderIcon = "NvimTreeFolderIcon", ClosedFolderIcon = "NvimTreeFolderIcon", Normal = "Normal", + NormalFloat = "NormalFloat", NormalNC = "NvimTreeNormal", EndOfBuffer = "EndOfBuffer", CursorLineNr = "CursorLineNr", diff --git a/lua/nvim-tree/help.lua b/lua/nvim-tree/help.lua index e1ac4470..18036996 100644 --- a/lua/nvim-tree/help.lua +++ b/lua/nvim-tree/help.lua @@ -5,7 +5,8 @@ local PAT_CTRL = "^