From 64386acb47a1ce494c6ae88ba2fe49d21b9d9b7a Mon Sep 17 00:00:00 2001 From: traxys Date: Sat, 21 Jan 2023 21:27:22 +0100 Subject: [PATCH] nvim-tree: Fixup mkIf if value is null --- 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 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";