From f99460cf15a575cf86084a48db6d39f0d454c3fd Mon Sep 17 00:00:00 2001 From: tikikun Date: Fri, 8 Sep 2023 09:31:58 +0700 Subject: [PATCH] vscode like root navigation --- lua/custom/plugins/filetree.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua index e5b09e41..a6e17834 100644 --- a/lua/custom/plugins/filetree.lua +++ b/lua/custom/plugins/filetree.lua @@ -14,7 +14,7 @@ return { open_files_do_not_replace_types = { "terminal", "Trouble", "qf", "Outline" }, filesystem = { visible = true, -- This is what you want: If you set this to `true`, all "hide" just mean "dimmed out" - bind_to_cwd = false, + bind_to_cwd = true, -- This option is very important to mimic the behaviour just like VsCode follow_current_file = { enabled = true }, use_libuv_file_watcher = true, },