Add a mode that allows edit without the picker (#873)

This commit is contained in:
Sander van Harmelen
2022-01-21 12:36:28 +01:00
committed by GitHub
parent 1ac3502290
commit 14bdf134f9
4 changed files with 6 additions and 3 deletions

View File

@@ -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()