blob: c7dbed1dd97bbb1f48b69561bcd08464af4ff28e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
(import-macros {: map!} :nvrc.macro.keymap)
(local {: setup} (require :gitsigns))
(setup {:signs {:add {:text "+"}
:change {:text "~"}
:delete {:text "_"}
:topdelete {:text "‾"}
:changedelete {:text "~"}}
:on_attach (fn [bufnr]
(map! [n :expr] "]c" "&diff ? ']c' : '<cmd>Gitsigns next_hunk<cr>'")
(map! [n :expr] "[c" "&diff ? '[c' : '<cmd>Gitsigns prev_hunk<cr>'"))})
|