diff --git a/plugins/utils/nvim-tree.nix b/plugins/utils/nvim-tree.nix index ecc9616a..259e047b 100644 --- a/plugins/utils/nvim-tree.nix +++ b/plugins/utils/nvim-tree.nix @@ -266,7 +266,7 @@ in nvim-web-devicons ]; - autoCmd = mkIf cfg.autoClose [ + autoCmd = mkIf (cfg.autoClose != null && cfg.autoClose) [ { event = "BufEnter"; command = "if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif";