mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-15 15:12:36 +02:00
nvim-tree: Fixup mkIf if value is null
This commit is contained in:
parent
23327700e2
commit
64386acb47
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue