mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-05-18 15:04:19 +02:00
mzte-nv: gitsigns works again
This commit is contained in:
parent
dfb37bcb33
commit
cc5c19cff0
14
mzte-nv/conf/lua/pluginconf/p-gitsigns.fnl
Normal file
14
mzte-nv/conf/lua/pluginconf/p-gitsigns.fnl
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
(local gitsigns (require :gitsigns))
|
||||||
|
|
||||||
|
(fn on-attach [bufnr]
|
||||||
|
(print :attached bufnr)
|
||||||
|
(vim.keymap.set :n :gV
|
||||||
|
(fn []
|
||||||
|
(gitsigns.toggle_deleted)
|
||||||
|
(gitsigns.toggle_numhl)
|
||||||
|
(gitsigns.toggle_linehl)
|
||||||
|
(gitsigns.toggle_word_diff)
|
||||||
|
(gitsigns.toggle_current_line_blame))
|
||||||
|
{:buffer bufnr}))
|
||||||
|
|
||||||
|
(gitsigns.setup {:on_attach on-attach})
|
|
@ -33,7 +33,8 @@
|
||||||
:noice
|
:noice
|
||||||
:tsn-actions
|
:tsn-actions
|
||||||
:lightbulb
|
:lightbulb
|
||||||
:dressing])
|
:dressing
|
||||||
|
:gitsigns])
|
||||||
|
|
||||||
(local errors {})
|
(local errors {})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue