We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1be1e17 commit 65c2ba8Copy full SHA for 65c2ba8
lua/nvim-tree.lua
@@ -192,6 +192,7 @@ end
192
193
function M.reset_highlight()
194
colors.setup()
195
+ view.reset_winhl()
196
renderer.render_hl(view.get_bufnr())
197
end
198
lua/nvim-tree/view.lua
@@ -436,6 +436,13 @@ function M.is_root_folder_visible(cwd)
436
return cwd ~= "/" and not M.View.hide_root_folder
437
438
439
+-- used on ColorScheme event
440
+function M.reset_winhl()
441
+ if M.get_winnr() then
442
+ vim.wo[M.get_winnr()].winhl = M.View.winopts.winhl
443
+ end
444
+end
445
+
446
function M.setup(opts)
447
local options = opts.view or {}
448
M.View.adaptive_size = options.adaptive_size
0 commit comments