diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 5ba69477..221db6a9 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -40,6 +40,7 @@ return { filesystem = { bind_to_cwd = false, follow_current_file = true, + use_libuv_file_watcher = true, }, window = { mappings = { @@ -55,6 +56,17 @@ return { }, }, }, + config = function(_, opts) + require("neo-tree").setup(opts) + vim.api.nvim_create_autocmd("TermClose", { + pattern = "*lazygit", + callback = function() + if package.loaded["neo-tree.sources.git_status"] then + require("neo-tree.sources.git_status").refresh() + end + end, + }) + end, }, -- search/replace in multiple files