fix: forget window when quit_on_open is true and buffer is wiped
This commit is contained in:
@@ -287,6 +287,8 @@ local function setup_autocommands(opts)
|
|||||||
|
|
||||||
if not opts.actions.open_file.quit_on_open then
|
if not opts.actions.open_file.quit_on_open then
|
||||||
vim.cmd "au BufWipeout NvimTree lua require'nvim-tree.view'._prevent_buffer_override()"
|
vim.cmd "au BufWipeout NvimTree lua require'nvim-tree.view'._prevent_buffer_override()"
|
||||||
|
else
|
||||||
|
vim.cmd "au BufWipeout NvimTree lua require'nvim-tree.view'.abandon_current_window()"
|
||||||
end
|
end
|
||||||
|
|
||||||
if opts.hijack_directories.enable then
|
if opts.hijack_directories.enable then
|
||||||
|
|||||||
Reference in New Issue
Block a user