nvim-tree: Fixup mkIf if value is null

This commit is contained in:
traxys 2023-01-21 21:27:22 +01:00
parent 23327700e2
commit 64386acb47

View file

@ -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";