From 92ed3c487af7cde3bf77eea2bceb416de0e2523f Mon Sep 17 00:00:00 2001 From: kiyan Date: Sat, 4 Jun 2022 11:56:03 +0200 Subject: [PATCH] fix(view): call get size after setting the height fixes bottom and top placement for the tree fixes #1311 --- lua/nvim-tree/view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/view.lua b/lua/nvim-tree/view.lua index f0418d62..21d674c1 100644 --- a/lua/nvim-tree/view.lua +++ b/lua/nvim-tree/view.lua @@ -396,8 +396,8 @@ function M.setup(opts) M.View.adaptive_size = options.adaptive_size M.View.side = options.side M.View.width = options.width - M.View.initial_width = get_size() M.View.height = options.height + M.View.initial_width = get_size() M.View.hide_root_folder = options.hide_root_folder M.View.preserve_window_proportions = options.preserve_window_proportions M.View.winopts.number = options.number