-- we still use oil.nvim for more complex filesystem manipulations return { "oil.nvim", cmd = "Oil", keys = { { "bf", function() vim.cmd("Oil " .. vim.fn.getcwd()) end, mode = "n", desc = "Open oil in current working directory", }, { "be", vim.cmd.Oil, mode = "n", desc = "Open oil in current file directory", }, }, after = function() require("oil").setup({ columns = { "size", "icon", }, default_file_explorer = false, use_default_keymaps = false, keymaps = { ["J"] = "actions.parent", ["Q"] = "actions.close", [""] = "actions.select_split", [""] = "actions.refresh", [""] = "actions.preview", [""] = "actions.select_vsplit", [""] = "actions.select_tab", [""] = "actions.select", ["K"] = "actions.select", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", ["g."] = "actions.toggle_hidden", ["g?"] = "actions.show_help", ["g\\"] = "actions.toggle_trash", ["gs"] = "actions.change_sort", ["gx"] = "actions.open_external", ["~"] = "actions.tcd", }, }) end, }