mirror of
https://github.com/marianozunino/nvim.git
synced 2025-06-28 18:43:50 -03:00
batman!
This commit is contained in:
commit
ae7d9bf4b6
63 changed files with 2160 additions and 0 deletions
47
lua/config/plugins/git.lua
Normal file
47
lua/config/plugins/git.lua
Normal file
|
@ -0,0 +1,47 @@
|
|||
local M = {
|
||||
{ "lewis6991/gitsigns.nvim" },
|
||||
{
|
||||
"kdheepak/lazygit.nvim",
|
||||
cmd = {
|
||||
"LazyGit",
|
||||
"LazyGitConfig",
|
||||
"LazyGitCurrentFile",
|
||||
"LazyGitFilter",
|
||||
"LazyGitFilterCurrentFile",
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
"ruifm/gitlinker.nvim",
|
||||
},
|
||||
}
|
||||
|
||||
M.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 },
|
||||
},
|
||||
})
|
||||
|
||||
require("gitlinker").setup({
|
||||
message = false,
|
||||
console_log = false,
|
||||
})
|
||||
|
||||
nmap("<leader>gy", "<cmd>lua require('gitlinker').get_buf_range_url('n')<cr>")
|
||||
namp("<leader>gY", "<cmd>lua require('gitlinker').get_buf_range_url('n', 'blame')<cr>")
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue