From 396f229b266f9ce03bad1143dcc155505d7e5587 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Mon, 3 Oct 2022 09:12:50 +0200 Subject: [PATCH] fix(nvim): conflict between git worktree and nvim tree --- nvim/after/plugin/nvim-tree.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nvim/after/plugin/nvim-tree.lua b/nvim/after/plugin/nvim-tree.lua index 8a9ea39..4974855 100644 --- a/nvim/after/plugin/nvim-tree.lua +++ b/nvim/after/plugin/nvim-tree.lua @@ -5,5 +5,8 @@ if not status_ok then end nvim_tree.setup({ - sync_root_with_cwd = true, + update_focused_file = { + enable = true, + update_root = true, + }, })