mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
nvim-tree: Fixup mkIf if value is null (#133)
This commit is contained in:
parent
4afb8e7347
commit
c09eb13a5a
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue