Mac paste, git blame, grep string fix
This commit is contained in:
parent
c842a55175
commit
c822930602
@ -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
|
||||
|
6
lua/plugins/gitsigns.lua
Normal file
6
lua/plugins/gitsigns.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
opts = {
|
||||
current_line_blame = true,
|
||||
},
|
||||
}
|
@ -29,7 +29,7 @@ return {
|
||||
{
|
||||
"<leader>8",
|
||||
function()
|
||||
require("telescope.bultin").grep_string()
|
||||
require("telescope.builtin").grep_string()
|
||||
end,
|
||||
desc = "Search word under cursor",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user