fix(#2024): revert removal of deprecated nvim-tree.config nvim_tree_callback

This commit is contained in:
Alexander Courtis
2023-02-28 09:09:22 +11:00
parent 59bcb01d3b
commit 362ecbeed6
2 changed files with 28 additions and 9 deletions

11
lua/nvim-tree/config.lua Normal file
View File

@@ -0,0 +1,11 @@
-- INFO: DEPRECATED FILE, DO NOT ADD ANYTHING IN THERE
-- keeping to avoid breaking user configs. Will remove during a weekend.
local M = {}
-- TODO: remove this once the cb property is not supported in mappings, following view.mapping.list removal
function M.nvim_tree_callback(callback_name)
-- generate_on_attach_.* will map this as per mappings.list..action
return callback_name
end
return M