Skip to content

Commit 757951b

Browse files
authored
feat(view): floating window's optional adaptive size specification (#1559)
1 parent 07f59e7 commit 757951b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/nvim-tree/view.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ function M.grow_from_content()
246246
end
247247

248248
function M.resize(size)
249-
if M.View.float.enable then
249+
if M.View.float.enable and not M.View.adaptive_size then
250+
-- if the floating windows's adaptive size is not desired, then the
250251
-- float size should be defined in view.float.open_win_config
251252
return
252253
end

0 commit comments

Comments
 (0)