We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd96f4 commit 7ec12c7Copy full SHA for 7ec12c7
lua/nvim-tree.lua
@@ -263,6 +263,8 @@ local function setup_autocommands(opts)
263
vim.cmd "au BufEnter,BufNewFile * lua require'nvim-tree'.open_on_directory()"
264
end
265
266
+ vim.cmd "au WinClosed,WinNew * lua vim.schedule(function() require'nvim-tree'.resize() end)"
267
+
268
vim.cmd "augroup end"
269
270
lua/nvim-tree/view.lua
@@ -169,7 +169,7 @@ function M.resize(size)
169
M.View.height = size
170
171
172
- if not a.nvim_win_is_valid(M.get_winnr()) then
+ if not M.is_visible() then
173
return
174
175
0 commit comments