feat(ide): gitsigns and git line blame

This commit is contained in:
Guz
2024-12-07 12:22:25 -03:00
parent 32d2ebd07f
commit 799656c3cc
2 changed files with 28 additions and 0 deletions

View File

@@ -116,6 +116,33 @@ return {
end,
},
-- Git integration, enabled just in git repos
{
"gitsigns.nvim",
cmd = "Gitsigns",
keys = {
{
"<leader>gt",
"<cmd>Gitsigns toggle_current_line_blame<cr>",
desc = "[Git] Toggle line blame",
},
},
enabled = require("dot013.utils").is_in_cwd(".git"),
lazy = not require("dot013.utils").is_in_cwd(".git"),
after = function()
require("gitsigns").setup({
signs = {
add = { text = "+" },
change = { text = "~" },
delete = { text = "+" },
topdelete = { text = "-" },
changedelete = { text = "~" },
},
current_line_blame = false,
current_line_blame_opts = {
delay = 0,
},
})
end,
},
}

View File

@@ -30,6 +30,7 @@
blink-cmp
cloak-nvim
friendly-snippets
gitsigns-nvim
harpoon2
lualine-nvim
luasnip