Mac paste, git blame, grep string fix

This commit is contained in:
2023-12-01 15:28:11 -05:00
parent c842a55175
commit c822930602
3 changed files with 17 additions and 1 deletions

View File

@@ -10,3 +10,13 @@ end, { desc = "Toggle clx (console HackerNews) floating terminal" })
vim.keymap.set("n", "<leader>D", function()
Util.terminal({ "lazydocker" }, { esc_esc = false, ctrl_hjkl = false })
end, { desc = "Toggle lazydocker (console Docker Desktop) floating terminal" })
-- Allow Cmd+V pasting on mac
if vim.fn.has("mac") == 1 then
vim.keymap.set("n", "<D-v>", '"+p')
vim.keymap.set("n", "<D-s-v>", '"+p')
vim.keymap.set("i", "<D-v>", "<C-r>*")
vim.keymap.set("i", "<D-s-v>", "<C-r>*")
vim.keymap.set("t", "<D-v>", '<C-\\><C-n>"+pi')
vim.keymap.set("t", "<D-s-v>", '<C-\\><C-n>"+pi')
end