Skip to content

Commit 85b6f68

Browse files
committed
add deprecation warning
1 parent 514afe4 commit 85b6f68

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

lua/nvim-tree.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,27 @@ function M.setup(conf)
435435
M.on_enter(opts)
436436
end
437437

438+
local out_config = {
439+
"nvim_tree_disable_netrw",
440+
"nvim_tree_hijack_netrw",
441+
"nvim_tree_auto_open",
442+
"nvim_tree_auto_close",
443+
"nvim_tree_tab_open",
444+
"nvim_tree_update_cwd",
445+
"nvim_tree_hijack_cursor",
446+
"nvim_tree_system_open_command",
447+
"nvim_tree_system_open_command_args",
448+
"nvim_tree_follow",
449+
"nvim_tree_follow_update_path",
450+
}
451+
452+
local x = vim.tbl_filter(function(v)
453+
return vim.fn.exists('g:'..v) ~= 0
454+
end, out_config)
455+
456+
if #x > 0 then
457+
local msg = "following options are now set in the setup, please read the new documentation for the setup function: "
458+
require'nvim-tree.utils'.echo_warning(msg..table.concat(x, " | "))
459+
end
460+
438461
return M

0 commit comments

Comments
 (0)