Skip to content

Commit ce5d0a6

Browse files
authored
fix(#1543): Do not resize nvim-tree window if float is enabled (#1556)
Co-authored-by: Krzysztof Cieśla <[email protected]>
1 parent c272c88 commit ce5d0a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/nvim-tree/view.lua

+5
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ function M.grow_from_content()
246246
end
247247

248248
function M.resize(size)
249+
if M.View.float.enable then
250+
-- float size should be defined in view.float.open_win_config
251+
return
252+
end
253+
249254
if type(size) == "string" then
250255
size = vim.trim(size)
251256
local first_char = size:sub(1, 1)

0 commit comments

Comments
 (0)