feat(event): add WillRenameNode (#1821)

This commit is contained in:
Anton
2022-12-12 02:56:50 +02:00
committed by GitHub
parent 8b4aaff783
commit a2c75567ad
3 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ function M.rename(node, to)
return
end
events._dispatch_will_rename_node(node.absolute_path, to)
local success, err = vim.loop.fs_rename(node.absolute_path, to)
if not success then
return notify.warn(err_fmt(node.absolute_path, to, err))