1
0
Fork 0
dotfiles/home/config/nvim/plugins/gitsigns.fnl

34 lines
1.7 KiB
Text
Raw Normal View History

2023-01-11 21:45:22 +00:00
(let [gitsigns (require :gitsigns)
set-bufvar vim.api.nvim_buf_set_var]
2022-04-05 19:57:44 +00:00
(gitsigns.setup {:signs {:add {:hl :GitSignsAdd
:text "│"
:numhl :GitSignsAddNr
:linehl :GitSignsAddLn}
:change {:hl :GitSignsChange
:text "│"
:numhl :GitSignsChangeNr
:linehl :GitSignsChangeLn}
:delete {:hl :GitSignsDelete
:text "_"
:numhl :GitSignsDeleteNr
:linehl :GitSignsDeleteLn}
:topdelete {:hl :GitSignsDelete
:text "‾"
:numhl :GitSignsDeleteNr
:linehl :GitSignsDeleteLn}
:changedelete {:hl :GitSignsChange
:text "~"
:numhl :GitSignsChangeNr
2023-01-11 21:45:22 +00:00
:linehl :GitSignsChangeLn}
:untracked {:hl :GitSignsUntracked
:text "┆"
:numhl :GitSignsUntrackedNr
:linehl :GitSignsUntrackedLn}}
2022-04-05 19:57:44 +00:00
:numhl false
:linehl false
2022-04-23 22:16:23 +00:00
:diff_opts {:internal true}
2023-01-11 21:45:22 +00:00
:preview_config {:border :rounded}
:on_attach (fn [bufnr]
(set-bufvar bufnr :nifoc_gitsigns_enabled 1))}))
2022-04-23 22:16:23 +00:00