From 757951ba6b3ee6b0f502c4bd4a23c53b382305c2 Mon Sep 17 00:00:00 2001 From: Bryan Baron <77312939+MrFixThis@users.noreply.github.com> Date: Mon, 29 Aug 2022 17:50:18 -0500 Subject: [PATCH] feat(view): floating window's optional adaptive size specification (#1559) --- lua/nvim-tree/view.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/nvim-tree/view.lua b/lua/nvim-tree/view.lua index 423f4fc6..17ec841c 100644 --- a/lua/nvim-tree/view.lua +++ b/lua/nvim-tree/view.lua @@ -246,7 +246,8 @@ function M.grow_from_content() end function M.resize(size) - if M.View.float.enable then + if M.View.float.enable and not M.View.adaptive_size then + -- if the floating windows's adaptive size is not desired, then the -- float size should be defined in view.float.open_win_config return end