From 7a782c9a9cb7a16ec52199e55a1e892262c5dbbc Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Wed, 22 Jan 2025 21:19:02 -0800 Subject: [PATCH] refactor: officially deprecated trash_command --- lua/oil/config.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/oil/config.lua b/lua/oil/config.lua index 3ed851e..562562c 100644 --- a/lua/oil/config.lua +++ b/lua/oil/config.lua @@ -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 {}