return { "stevearc/oil.nvim", opts = {}, commit = '18272aba9d00a3176a5443d50dbb4464acc167bd', -- Optional dependencies dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() require("oil").setup({ default_file_explorer = true, buf_options = { buflisted = false, bufhidden = "hide", }, win_options = { wrap = false, signcolumn = "no", cursorcolumn = false, foldcolumn = "0", spell = false, list = false, conceallevel = 3, concealcursor = "nvic", }, delete_to_trash = false, skip_confirm_for_simple_edits = false, prompt_save_on_select_new_entry = true, cleanup_delay_ms = 2000, keymaps = { ["g?"] = "actions.show_help", [""] = "actions.select", [""] = "actions.select_vsplit", [""] = false, [""] = "actions.select_tab", [""] = "actions.preview", [""] = "actions.close", [""] = false, ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", ["~"] = "actions.tcd", ["gs"] = "actions.change_sort", ["gx"] = "actions.open_external", ["g."] = "actions.toggle_hidden", }, use_default_keymaps = false, view_options = { show_hidden = true, is_hidden_file = function(name, _) return vim.startswith(name, ".") end, is_always_hidden = function(_, _) return false end, sort = { { "type", "asc" }, { "name", "asc" }, }, }, preview = { max_width = 0.9, min_width = { 40, 0.4 }, width = nil, max_height = 0.9, min_height = { 5, 0.1 }, height = nil, border = "rounded", win_options = { winblend = 0, }, }, progress = { max_width = 0.9, min_width = { 40, 0.4 }, width = nil, max_height = { 10, 0.9 }, min_height = { 5, 0.1 }, height = nil, border = "rounded", minimized_border = "none", win_options = { winblend = 0, }, }, }) vim.keymap.set("n", "-", function() vim.cmd("Oil") end, { desc = "Open parent directory" }) end, }