feat: add command to prevent nvim-tree window override by another buffer
This commit is contained in:
@@ -260,12 +260,12 @@ function M.open_file(mode, filename)
|
||||
return
|
||||
end
|
||||
|
||||
view.resize()
|
||||
|
||||
if vim.g.nvim_tree_quit_on_open == 1 and mode ~= 'preview' then
|
||||
view.close()
|
||||
end
|
||||
|
||||
view.resize()
|
||||
|
||||
renderer.draw(M.Tree, true)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user