mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 10:33:49 -03:00
40 lines
1.1 KiB
Lua
40 lines
1.1 KiB
Lua
local M = {
|
|
{
|
|
"tpope/vim-fugitive",
|
|
config = function()
|
|
print("Magic")
|
|
-- For init.lua
|
|
vim.g.fugitive_git_executable = "env GPG_TTY=$(tty) git"
|
|
vim.env.GPG_TTY = vim.fn.system("tty"):gsub("\n", "")
|
|
end,
|
|
},
|
|
{
|
|
"lewis6991/gitsigns.nvim",
|
|
config = function()
|
|
require("gitsigns").setup({
|
|
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
|
|
current_line_blame = true,
|
|
signs = {
|
|
add = { text = icons.ui.BoldLineMiddle },
|
|
change = { text = icons.ui.BoldLineDashedMiddle },
|
|
delete = { text = icons.ui.TriangleShortArrowRight },
|
|
topdelete = { text = icons.ui.TriangleShortArrowRight },
|
|
changedelete = { text = icons.ui.BoldLineMiddle },
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"ruifm/gitlinker.nvim",
|
|
config = function()
|
|
require("gitlinker").setup({
|
|
message = false,
|
|
console_log = false,
|
|
})
|
|
|
|
nmap("<leader>gy", "<cmd>lua require('gitlinker').get_buf_range_url('n')<cr>")
|
|
end,
|
|
},
|
|
}
|
|
|
|
return M
|