fix(#1543): Do not resize nvim-tree window if float is enabled (#1556)

Co-authored-by: Krzysztof Cieśla <krzysztof.marcin.ciesla@cern.ch>
This commit is contained in:
Krzysztof Cieśla 2022-08-27 05:36:26 +02:00 committed by GitHub
parent c272c88daf
commit ce5d0a6b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)