local map = require'std.map' return { 'stevearc/oil.nvim', lazy = false, -- event = 'VeryLazy', dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() local oil = require'oil' oil.setup{ skip_confirm_for_simple_edits = true, -- delete_to_trash = true, -- trash_command = 'rm', --nu command colums = { "icon", "permissions", "size", "mtime", }, keymaps = { ["q"] = "actions.close", [""] = "actions.close", [""] = "actions.show_help", [""] = "actions.show_help", [""] = "actions.show_help", [""] = "actions.select_vsplit", [""] = "actions.select_split", [""] = "actions.toggle_hidden", }, float = { border = vim.g.border_style, padding = 2, win_options = { winblend = vim.o.winblend }, }, } map.normal { description = 'Open parent directory in buffer.', category = 'files', keys = '-', -- command = oil.open, command = oil.open_float, } end, }