Mac paste, git blame, grep string fix

This commit is contained in:
Tyler Hallada 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() vim.keymap.set("n", "<leader>D", function()
Util.terminal({ "lazydocker" }, { esc_esc = false, ctrl_hjkl = false }) Util.terminal({ "lazydocker" }, { esc_esc = false, ctrl_hjkl = false })
end, { desc = "Toggle lazydocker (console Docker Desktop) floating terminal" }) 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

6
lua/plugins/gitsigns.lua Normal file
View File

@ -0,0 +1,6 @@
return {
"lewis6991/gitsigns.nvim",
opts = {
current_line_blame = true,
},
}

View File

@ -29,7 +29,7 @@ return {
{ {
"<leader>8", "<leader>8",
function() function()
require("telescope.bultin").grep_string() require("telescope.builtin").grep_string()
end, end,
desc = "Search word under cursor", desc = "Search word under cursor",
}, },