Add a mode that allows edit without the picker (#873)
This commit is contained in:
committed by
GitHub
parent
1ac3502290
commit
14bdf134f9
@@ -131,7 +131,7 @@ function M.fn(mode, filename)
|
||||
local win_ids = api.nvim_tabpage_list_wins(tabpage)
|
||||
|
||||
local target_winid
|
||||
if vim.g.nvim_tree_disable_window_picker == 1 then
|
||||
if vim.g.nvim_tree_disable_window_picker == 1 or mode == "edit_no_picker" then
|
||||
target_winid = lib.Tree.target_winid
|
||||
else
|
||||
target_winid = pick_window()
|
||||
|
||||
Reference in New Issue
Block a user