diff --git a/lua/nvim-tree/view.lua b/lua/nvim-tree/view.lua index ea749d85017..423f4fc696b 100644 --- a/lua/nvim-tree/view.lua +++ b/lua/nvim-tree/view.lua @@ -246,6 +246,11 @@ function M.grow_from_content() end function M.resize(size) + if M.View.float.enable then + -- float size should be defined in view.float.open_win_config + return + end + if type(size) == "string" then size = vim.trim(size) local first_char = size:sub(1, 1)