Skip to content

Commit b95c5da

Browse files
committed
feat(git): add mini.diff
1 parent c5e7f6a commit b95c5da

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# mini.diff
2+
3+
Work with diff hunks. Part of 'mini.nvim' library.
4+
5+
**Repository:** <https://github.com/echasnovski/mini.diff>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---@type LazySpec
2+
return {
3+
"echasnovski/mini.diff",
4+
event = "User AstroGitFile",
5+
opts = function()
6+
local sign = require("astroui").get_icon "GitSign"
7+
return {
8+
view = {
9+
style = "sign",
10+
signs = { add = sign, change = sign, delete = sign },
11+
},
12+
mappings = {
13+
apply = "gh",
14+
goto_first = "[G",
15+
goto_last = "]G",
16+
goto_next = "]g",
17+
goto_prev = "[g",
18+
reset = "gH",
19+
textobject = "g",
20+
},
21+
}
22+
end,
23+
specs = {
24+
{ "lewis6991/gitsigns.nvim", enabled = false },
25+
},
26+
}

0 commit comments

Comments
 (0)