mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 13:23:41 +01:00
mzte-nv: gitsigns works again
This commit is contained in:
parent
dfb37bcb33
commit
cc5c19cff0
2 changed files with 16 additions and 1 deletions
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
|
||||
:tsn-actions
|
||||
:lightbulb
|
||||
:dressing])
|
||||
:dressing
|
||||
:gitsigns])
|
||||
|
||||
(local errors {})
|
||||
|
||||
|
|
Loading…
Reference in a new issue