feat: add vinegar abilities to the tree

fixes #860
This commit is contained in:
kiyan
2022-02-21 21:42:43 +01:00
parent f977e5c05a
commit f8f297acbf
6 changed files with 84 additions and 11 deletions

View File

@@ -154,6 +154,12 @@ function M.fn(mode, filename)
return
end
if mode == "edit_in_place" then
vim.cmd("edit " .. vim.fn.fnameescape(filename))
require"nvim-tree.view".abandon_current_window()
return
end
local tabpage = api.nvim_get_current_tabpage()
local win_ids = api.nvim_tabpage_list_wins(tabpage)