From c09eb13a5a0259d074e6fec569fe82b671639b34 Mon Sep 17 00:00:00 2001 From: traxys Date: Sun, 22 Jan 2023 04:36:53 +0100 Subject: [PATCH] nvim-tree: Fixup mkIf if value is null (#133) --- plugins/utils/nvim-tree.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/utils/nvim-tree.nix b/plugins/utils/nvim-tree.nix index d657a406..a75106a1 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";