return { "stevearc/oil.nvim", opts = { -- remapping is not working, so redefine defaults with C-l and C-h swapped for C-f and C-i -- see: https://github.com/stevearc/oil.nvim/issues/217 use_default_keymaps = false, keymaps = { ["g?"] = "actions.show_help", [""] = "actions.select", [""] = "actions.select_vsplit", [""] = "actions.select_split", [""] = "actions.select_tab", [""] = "actions.preview", [""] = "actions.close", [""] = "actions.refresh", ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", ["~"] = "actions.tcd", ["gs"] = "actions.change_sort", ["gx"] = "actions.open_external", ["g."] = "actions.toggle_hidden", ["g\\"] = "actions.toggle_trash", }, }, dependencies = { "nvim-tree/nvim-web-devicons" }, keys = { { "-", "Oil", { desc = "Open parent directory in current buffer" } }, }, }