diff --git a/lua/nvim-tree/view.lua b/lua/nvim-tree/view.lua index 4923cd2992d..59886e4e39a 100644 --- a/lua/nvim-tree/view.lua +++ b/lua/nvim-tree/view.lua @@ -572,6 +572,10 @@ function M.setup(opts) end M.View.initial_width = get_width() + + if vim.fn.has("nvim-0.10") == 1 then + M.View.winopts.winfixbuf = true + end end return M