From 6fc32c9cb3ed1672b61e12a1ce67e9ab422e22a5 Mon Sep 17 00:00:00 2001 From: brianhuster Date: Tue, 26 Nov 2024 09:20:38 +0700 Subject: [PATCH] update --- lua/dirvish-do/operations.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dirvish-do/operations.lua b/lua/dirvish-do/operations.lua index 0ffd22b..5f15bf5 100644 --- a/lua/dirvish-do/operations.lua +++ b/lua/dirvish-do/operations.lua @@ -9,7 +9,7 @@ M.sep = fn.exists('+shellslash') == 1 and not vim.o.shellslash and '\\' or '/' function M.rm(path) if require('dirvish-do').config.operations.remove == 'trash' then - vim.cmd.python3(('from send2trash import send2trash; send2trash("%s")'):format(path)) + M.trash(path) return end local isDir = path:sub(-1) == "/"