Skip to content

Commit c1416a4

Browse files
committed
fix(#2774): add winfixbuf view option for nvim 0.10
1 parent d8d3a15 commit c1416a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/nvim-tree/view.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,10 @@ function M.setup(opts)
572572
end
573573

574574
M.View.initial_width = get_width()
575+
576+
if vim.fn.has("nvim-0.10") == 1 then
577+
M.View.winopts.winfixbuf = true
578+
end
575579
end
576580

577581
return M

0 commit comments

Comments
 (0)