From 627dde9960c2dcc83c70dd873c26f46adbd3e9db Mon Sep 17 00:00:00 2001 From: chomosuke Date: Wed, 7 Dec 2022 18:59:40 +1100 Subject: [PATCH] fixed crashing when root dir isn't git dir --- lua/nvim-tree/explorer/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/explorer/common.lua b/lua/nvim-tree/explorer/common.lua index 69bf90d6..0a3b9f3f 100644 --- a/lua/nvim-tree/explorer/common.lua +++ b/lua/nvim-tree/explorer/common.lua @@ -16,7 +16,7 @@ local function get_dir_git_status(parent_ignored, status, absolute_path) return { file = status.files and status.files[absolute_path], - dir = { + dir = status.dirs and { direct = status.dirs.direct[absolute_path], indirect = status.dirs.indirect[absolute_path], },