mirror of
https://github.com/marianozunino/nvim.git
synced 2025-10-29 03:40:41 -03:00
dev: automated commit - 2025-07-21 12:34:35
This commit is contained in:
parent
5cf175cad1
commit
5ddf4b6929
4 changed files with 75 additions and 6 deletions
|
|
@ -55,9 +55,7 @@ nmap("<leader>u", vim.cmd.UndotreeToggle)
|
|||
|
||||
-- nnoremap yl :let @" = expand("%:p")<cr>
|
||||
nmap("yl", function()
|
||||
local file = vim.fn.expand("%:p")
|
||||
print("Copied path to clipboard: " .. file)
|
||||
-- copy to os clipboard
|
||||
local file = vim.fn.expand("%")
|
||||
vim.fn.setreg("+", file)
|
||||
end, { desc = "Copy file path to clipboard" })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue