File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -263,8 +263,6 @@ local function setup_autocommands(opts)
263
263
vim .cmd " au BufEnter,BufNewFile * lua require'nvim-tree'.open_on_directory()"
264
264
end
265
265
266
- vim .cmd " au WinClosed,WinNew * lua vim.schedule(function() require'nvim-tree'.resize() end)"
267
-
268
266
vim .cmd " augroup end"
269
267
end
270
268
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ M.View = {
10
10
number = false ,
11
11
list = false ,
12
12
foldenable = false ,
13
+ winfixwidth = true ,
14
+ winfixheight = true ,
13
15
spell = false ,
14
16
signcolumn = ' yes' ,
15
17
foldmethod = ' manual' ,
@@ -292,6 +294,10 @@ function M._prevent_buffer_override()
292
294
return
293
295
end
294
296
297
+ -- patch to avoid the overriding window to be fixed in size
298
+ -- might need a better patch
299
+ vim .cmd " setlocal nowinfixwidth"
300
+ vim .cmd " setlocal nowinfixheight"
295
301
M .open ({ focus_tree = false })
296
302
require " nvim-tree.renderer" .draw ()
297
303
require " nvim-tree" .find_file (false )
You can’t perform that action at this time.
0 commit comments