diff --git a/lua/peter/plugins/core/oil.lua b/lua/peter/plugins/core/oil.lua index ac2b1d9..32ee368 100644 --- a/lua/peter/plugins/core/oil.lua +++ b/lua/peter/plugins/core/oil.lua @@ -21,6 +21,13 @@ return { ["|"] = { "actions.select", opts = { vertical = true } }, ["-"] = { "actions.select", opts = { horizontal = true } }, ["r"] = { "actions.refresh" }, + ["gY"] = { + function() + local dir = require("oil").get_current_dir() + vim.fn.setreg('"', dir) + end, + desc = "Yank current directory", + }, }, }, },