nvim-tree: Fixup mkIf if value is null (#133)

This commit is contained in:
traxys 2023-01-22 04:36:53 +01:00 committed by GitHub
parent 4afb8e7347
commit c09eb13a5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ in
nvim-web-devicons nvim-web-devicons
]; ];
autoCmd = mkIf cfg.autoClose [ autoCmd = mkIf (cfg.autoClose != null && cfg.autoClose) [
{ {
event = "BufEnter"; event = "BufEnter";
command = "if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif"; command = "if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif";