feat: add winid parameter for api.tree.open, toggle, find_file (#2213)
* feat: add winid parameter for api.tree.open, toggle, find_file * feat: add winid parameter for api.tree.open, toggle, find_file
This commit is contained in:
committed by
GitHub
parent
736c7ff590
commit
b1e074d2b5
@@ -48,7 +48,7 @@ function M.fn(opts)
|
||||
end
|
||||
elseif opts.open then
|
||||
-- open
|
||||
lib.open { current_window = opts.current_window }
|
||||
lib.open { current_window = opts.current_window, winid = opts.winid }
|
||||
if not opts.focus then
|
||||
vim.cmd "noautocmd wincmd p"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user