From 2b24d0794e95ce45e9bbd346c99a3bd76f127102 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sat, 5 Feb 2022 13:40:54 +0800 Subject: Use nvim-tree as file explorer when we open a folder netrw plugin needs to be disabled, and nvim-tree needs to be start package. Otherwise, the hijacking won't work, and when we open a folder, it just open a new file with the same name. --- lua/config/nvim-tree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/config/nvim-tree.lua') diff --git a/lua/config/nvim-tree.lua b/lua/config/nvim-tree.lua index a048c7a..d694dc0 100644 --- a/lua/config/nvim-tree.lua +++ b/lua/config/nvim-tree.lua @@ -45,7 +45,7 @@ nvim_tree.setup({ height = 30, hide_root_folder = false, side = "left", - auto_resize = false, + auto_resize = true, mappings = { custom_only = false, list = {}, -- cgit v1.2.3