Public Access
added copy path keybindings
This commit is contained in:
1 parent
dbc6188a72
commit
475c22b5c9
1 file changed
+4
@@ -62,3 +62,7 @@ map("n", "<leader>sl", function()
|
|||||||
vim.opt.spelllang = new
|
vim.opt.spelllang = new
|
||||||
vim.notify("Spell lang: " .. new)
|
vim.notify("Spell lang: " .. new)
|
||||||
end, { desc = "Spell: switch language (en/de)" })
|
end, { desc = "Spell: switch language (en/de)" })
|
||||||
|
|
||||||
|
-- Copy path
|
||||||
|
map("n", "<leader>cprp", "<cmd>let @+ = expand('%')<cr>", {desc = "Copy relative path to clipboard"})
|
||||||
|
map("n", "<leader>cpap", "<cmd>let @+ = expand('%:p')<cr>", {desc = "Copy absolute path to clipboard"})
|
||||||
Reference in new issue
Block a user