return { "stevearc/oil.nvim", dependencies = {"nvim-tree/nvim-web-devicons"}, config = function() require("oil").setup({ default_file_explorer = true, -- starts up nvim with oil as the default explorer instead of netrw, columns = { }, keymaps = { [""] = false, [""] = false, -- Ctrl c will not exit [""] = "action.select.split", -- Alt h to split window ["q"] = "actions.close", }, delete_to_trash = true, view_options = { show_hidden = true, }, skip_confirm_for_simple_edits = true, }) --keymaps for oil vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) -- opens parent dir over current active window vim.keymap.set("n", "-", require("oil").toggle_float, { desc = "toggle float oil" }) -- opens parent directory over current active window vim.api.nvim_create_autocmd("FileType", { pattern = "oil", callback = function() vim.opt_local.cursorline = true end, }) end }