local function store_select() require("oil").select({}, function() local f = io.open("/tmp/oil_dir", "w") if f then f:write(require("oil").get_current_dir()) f:close() end end) end return { 'stevearc/oil.nvim', dependencies = { "nvim-tree/nvim-web-devicons" }, lazy = true, opts = { keymaps = { ["g?"] = "actions.show_help", [""] = store_select, ["v"] = "actions.select_vsplit", ["s"] = "actions.select_split", ["p"] = "actions.preview", [""] = "actions.close", ["r"] = "actions.refresh", ["-"] = "actions.parent", ["_"] = "actions.open_cwd", ["`"] = "actions.cd", ["~"] = "actions.tcd", ["g."] = "actions.toggle_hidden", }, use_default_keymaps = false, } }