Update neotree to auto-close upon file selection

This commit is contained in:
Daniel McKnight 2025-06-10 11:54:52 -07:00
parent 4ab8d98e81
commit 2a11da6360

View file

@ -14,9 +14,18 @@ return {
visible = true,
-- hide_dotfiles = false,
hide_by_name = {
'.git'
}
}
}
}
".git",
},
},
},
event_handlers = {
{
event = "file_opened",
handler = function(file_path)
--auto close neo-tree when file is opened
vim.cmd("Neotree close")
end,
},
},
},
}