feat(keybinding): get current file path

This commit is contained in:
CronyAkatsuki 2025-10-21 10:29:57 +02:00
parent 479f03bbec
commit 8b5ffaa227

View file

@ -24,3 +24,10 @@ vim.keymap.set("v", ">", ">gv", { desc = "Indent right and reselect" })
-- file exploring
vim.keymap.set("n", "<Leader>e", ":Oil<CR>", { desc = "Open oil file explorer" })
-- Copy Full File-Path
vim.keymap.set("n", "<leader>yp", function()
local path = vim.fn.expand("%:p")
vim.fn.setreg("+", path)
print("file:", path)
end)