return { { "stevearc/oil.nvim", cmd = "Oil", keys = { { "-", "Oil", mode = { "n", "v" }, desc = "Open parent directory" } }, init = function() -- Load at startup only when nvim was opened on a directory. local arg = vim.fn.argc() == 1 and vim.fn.argv(0) local stat = arg and vim.uv.fs_stat(arg) if stat and stat.type == "directory" then require("lazy").load({ plugins = { "oil.nvim" } }) end end, opts = { default_file_explorer = true, columns = { "icon", "size" }, view_options = { show_hidden = true, natural_order = "fast" }, }, }, }