local M = { 'stevearc/oil.nvim', dependencies = { 'nvim-tree/nvim-web-devicons' }, } function M.config() require('oil').setup({ float = { max_height = 30, max_width = 120, }, keymaps = { ['g?'] = 'actions.show_help', [''] = 'actions.select', [''] = 'actions.select_vsplit', [''] = 'actions.select_split', [''] = 'actions.select_tab', [''] = 'actions.preview', ['q'] = 'actions.close', [''] = 'actions.refresh', [''] = 'actions.parent', ['_'] = 'actions.open_cwd', -- ['`'] = 'actions.cd', -- ['~'] = 'actions.tcd', ['`'] = 'false', ['~'] = 'false', ['gs'] = 'actions.change_sort', ['gx'] = 'actions.open_external', ['g.'] = 'actions.toggle_hidden', -- ['g\\'] = 'actions.toggle_trash', ['g\\'] = 'false', }, view_options = { show_hidden = true, }, }) vim.keymap.set('n', '', 'Oil --float', { desc = 'Open parent directory' }) end return M