nvim: fix gitsigns
This commit is contained in:
parent
848624ac0a
commit
72300e42af
1 changed files with 6 additions and 25 deletions
|
@ -1,33 +1,14 @@
|
||||||
(let [gitsigns (require :gitsigns)
|
(let [gitsigns (require :gitsigns)
|
||||||
set-bufvar vim.api.nvim_buf_set_var]
|
set-bufvar vim.api.nvim_buf_set_var]
|
||||||
(gitsigns.setup {:signs {:add {:hl :GitSignsAdd
|
(gitsigns.setup {:signs {:add {:text "│"}
|
||||||
:text "│"
|
:change {:text "│"}
|
||||||
:numhl :GitSignsAddNr
|
:delete {:text "_"}
|
||||||
:linehl :GitSignsAddLn}
|
:topdelete {:text "‾"}
|
||||||
:change {:hl :GitSignsChange
|
:changedelete {:text "~"}
|
||||||
:text "│"
|
:untracked {: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
|
|
||||||
:linehl :GitSignsChangeLn}
|
|
||||||
:untracked {:hl :GitSignsUntracked
|
|
||||||
:text "┆"
|
|
||||||
:numhl :GitSignsUntrackedNr
|
|
||||||
:linehl :GitSignsUntrackedLn}}
|
|
||||||
:numhl false
|
:numhl false
|
||||||
:linehl false
|
:linehl false
|
||||||
:diff_opts {:internal true}
|
:diff_opts {:internal true}
|
||||||
:preview_config {:border :rounded}
|
:preview_config {:border :rounded}
|
||||||
:on_attach (fn [bufnr]
|
:on_attach (fn [bufnr]
|
||||||
(set-bufvar bufnr :nifoc_gitsigns_enabled 1))}))
|
(set-bufvar bufnr :nifoc_gitsigns_enabled 1))}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue