parent
1be1e17be5
commit
65c2ba8952
@ -192,6 +192,7 @@ end
|
|||||||
|
|
||||||
function M.reset_highlight()
|
function M.reset_highlight()
|
||||||
colors.setup()
|
colors.setup()
|
||||||
|
view.reset_winhl()
|
||||||
renderer.render_hl(view.get_bufnr())
|
renderer.render_hl(view.get_bufnr())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -436,6 +436,13 @@ function M.is_root_folder_visible(cwd)
|
|||||||
return cwd ~= "/" and not M.View.hide_root_folder
|
return cwd ~= "/" and not M.View.hide_root_folder
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- used on ColorScheme event
|
||||||
|
function M.reset_winhl()
|
||||||
|
if M.get_winnr() then
|
||||||
|
vim.wo[M.get_winnr()].winhl = M.View.winopts.winhl
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function M.setup(opts)
|
function M.setup(opts)
|
||||||
local options = opts.view or {}
|
local options = opts.view or {}
|
||||||
M.View.adaptive_size = options.adaptive_size
|
M.View.adaptive_size = options.adaptive_size
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user