diff options
Diffstat (limited to 'fnl/nvrc/packs')
-rw-r--r-- | fnl/nvrc/packs/gitsigns.fnl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fnl/nvrc/packs/gitsigns.fnl b/fnl/nvrc/packs/gitsigns.fnl new file mode 100644 index 0000000..c7dbed1 --- /dev/null +++ b/fnl/nvrc/packs/gitsigns.fnl @@ -0,0 +1,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>'"))}) |