Skip to content

Commit

Permalink
fix: warning on Windows when delete_to_trash = true
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 3, 2023
1 parent 9a8cd48 commit 822f287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/oil/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,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
Expand Down

0 comments on commit 822f287

Please sign in to comment.