From a35bc79b5f59bd48c55415b5c6a116b83f7e7838 Mon Sep 17 00:00:00 2001 From: Ting Lu Date: Sat, 25 Feb 2023 15:26:01 -0600 Subject: [PATCH] Neotree close on only window open --- lua/custom/plugins/filtree.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/filtree.lua b/lua/custom/plugins/filtree.lua index 237f7505..87d84b9e 100644 --- a/lua/custom/plugins/filtree.lua +++ b/lua/custom/plugins/filtree.lua @@ -10,6 +10,8 @@ return { -- Unless you are still migrating, remove the deprecated commands from v1.x vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) - require('neo-tree').setup {} + require('neo-tree').setup { + close_if_last_window = true, + } end, }