refactor: officially deprecated trash_command

This commit is contained in:
Steven Arcangeli 2025-01-22 21:19:02 -08:00
parent 1b180d5491
commit 7a782c9a9c

View file

@ -394,6 +394,13 @@ local M = {}
M.setup = function(opts)
opts = opts or {}
if opts.trash_command then
vim.notify(
"[oil.nvim] trash_command is deprecated. Use built-in trash functionality instead (:help oil-trash).\nCompatibility will be removed on 2025-06-01.",
vim.log.levels.WARN
)
end
local new_conf = vim.tbl_deep_extend("keep", opts, default_config)
if not new_conf.use_default_keymaps then
new_conf.keymaps = opts.keymaps or {}