From 0d6654f8978ed0da9b119a3287a103480d658300 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Sun, 17 Sep 2023 10:39:21 -0700 Subject: [PATCH] fix: warning on Windows when delete_to_trash = true --- lua/oil/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/oil/config.lua b/lua/oil/config.lua index bfdb08a0..9de56936 100644 --- a/lua/oil/config.lua +++ b/lua/oil/config.lua @@ -153,9 +153,9 @@ M.setup = function(opts) if new_conf.delete_to_trash then local is_windows = uv.os_uname().version:match("Windows") if is_windows then - string.format( + vim.notify( "oil.nvim: delete_to_trash is true, but trash is not yet supported on Windows.\nDeleted files will be permanently removed", - new_conf.trash_command + vim.log.levels.WARN ) new_conf.delete_to_trash = false end