fix: focus view if view is open on nvim-tree.open
This commit is contained in:
@@ -37,7 +37,9 @@ end
|
|||||||
|
|
||||||
function M.open(cwd)
|
function M.open(cwd)
|
||||||
cwd = cwd ~= "" and cwd or nil
|
cwd = cwd ~= "" and cwd or nil
|
||||||
if not view.is_visible() then
|
if view.is_visible() then
|
||||||
|
view.focus()
|
||||||
|
else
|
||||||
lib.open(cwd)
|
lib.open(cwd)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user