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)