From 5c1ae1da4a750f94b02c3a9264b53fe63d9b79aa Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Fri, 24 Oct 2025 11:46:49 +0500 Subject: [PATCH] keymap to copy relative path of file --- .config/nvim/lua/user/keymaps.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/nvim/lua/user/keymaps.lua b/.config/nvim/lua/user/keymaps.lua index fa36832..ab0c4a9 100644 --- a/.config/nvim/lua/user/keymaps.lua +++ b/.config/nvim/lua/user/keymaps.lua @@ -49,5 +49,8 @@ keymap("n", "", ":tabprevious", opts) -- Copy to clipboard keymap("v", "", "\"+y", opts) +-- Copy relative path of current ile to clipboard +keymap("n", "", ":let @+ = expand(\"%\")", opts) + --Close buffer -- keymap("n", "", ":bd | bp ", opts)