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 Sep 19, 2023
1 parent 524f7e6 commit 0d6654f
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 @@ -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
Expand Down

0 comments on commit 0d6654f

Please sign in to comment.