return { 'stevearc/oil.nvim', ---@module 'oil' ---@type oil.SetupOpts opts = {}, -- Optional dependencies dependencies = { { 'echasnovski/mini.icons', opts = {} } }, keymaps = { ['g?'] = { 'actions.show_help', mode = 'n' }, [''] = 'actions.select', [''] = { 'actions.select', opts = { vertical = true } }, -- [''] = { 'actions.select', opts = { horizontal = true } }, [''] = { 'actions.select', opts = { tab = true } }, [''] = 'actions.preview', [''] = { 'actions.close', mode = 'n' }, -- [''] = 'actions.refresh', ['-'] = { 'actions.parent', mode = 'n' }, ['_'] = { 'actions.open_cwd', mode = 'n' }, ['`'] = { 'actions.cd', mode = 'n' }, ['~'] = { 'actions.cd', opts = { scope = 'tab' }, mode = 'n' }, ['gs'] = { 'actions.change_sort', mode = 'n' }, ['gx'] = 'actions.open_external', ['g.'] = { 'actions.toggle_hidden', mode = 'n' }, ['g\\'] = { 'actions.toggle_trash', mode = 'n' }, }, vim.keymap.set('n', 'o', 'Oil', { desc = 'Open parent directory' }), -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons }