return { { "nvim-neo-tree/neo-tree.nvim", branch = "v3.x", dependencies = { "nvim-lua/plenary.nvim", "nvim-tree/nvim-web-devicons", "MunifTanjim/nui.nvim" }, keys = { { "nt", "Neotree toggle", desc = "NeoTree toggle" }, { "", "Neotree focus", desc = "NeoTree focus" } }, config = function(_, opts) require("neo-tree").setup(opts) end, init = function() if vim.fn.argc(-1) == 1 then local stat = vim.uv.fs_stat(vim.fn.argv(0)) if stat and stat.type == "directory" then require("neo-tree") end end end } }