Feat: add focus on tree functionality (#563)

This commit is contained in:
颜贵彬
2021-08-14 17:06:56 +08:00
committed by GitHub
parent b8b70cf340
commit 7014b6aff4
4 changed files with 13 additions and 1 deletions

View File

@@ -11,6 +11,13 @@ local api = vim.api
local M = {}
function M.focus()
if not view.win_open() then
lib.open()
end
view.focus();
end
function M.toggle()
if view.win_open() then
view.close()