return { "stevearc/oil.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, event = 'VeryLazy', keys = { { "-", "Oil", desc = "Open parent directory" }, }, config = function(_, opts) require("oil").setup(opts) vim.api.nvim_create_autocmd("BufEnter", { pattern = "oil://*", callback = function() local dir = require("oil").get_current_dir() if dir then vim.cmd.lcd(dir) end end, }) end, opts = { default_file_explorer = true, -- nvim . opens oil columns = { "icon" }, view_options = { show_hidden = true, }, keymaps = { ["g?"] = "actions.show_help", [""] = "actions.select", [""] = "actions.select_vsplit", [""] = "actions.select_split", [""] = "actions.preview", [""] = "actions.close", ["-"] = "actions.parent", ["g."] = "actions.toggle_hidden", }, }, }