refactor: officially deprecated trash_command
This commit is contained in:
parent
1b180d5491
commit
7a782c9a9c
1 changed files with 7 additions and 0 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue