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

@@ -184,6 +184,7 @@ local function do_cut(source, destination)
return true
end
events._dispatch_will_rename_node(source, destination)
local success, errmsg = vim.loop.fs_rename(source, destination)
if not success then
log.line("copy_paste", "do_cut fs_rename failed '%s'", errmsg)