require("oil").setup({ keymaps = { -- TODO: put a small note that I can use `g?` for help -- TODO: change `_` opens Oil in util.root() -- and make it global keymap [""] = "actions.show_help", [""] = "actions.select_split", [""] = "actions.select_vsplit", ["K"] = "actions.preview", [""] = "actions.refresh", [""] = "actions.toggle_hidden", ["-"] = "actions.parent", ["_"] = false, [""] = false, [""] = false, ["%"] = function() vim.ui.input({ prompt = "Enter filename: " }, function(input) if input then vim.cmd.edit(vim.fn.expand("%") .. input) end end) end, }, })