try to bring yadm functionality back into gitsigns (not working)

I think the _on_attach_pre is working, but getting an error when adding
on_attach = function(bufnr) to the gitsigns config..

Started from my MBP at work, syncing so I can pick it up on another
laptop over the weekend if I have time
This commit is contained in:
2024-10-26 11:22:18 -04:00
parent 086466c03a
commit 66ad3aa181
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@ return packer.startup(function(use)
}) })
use("tpope/vim-obsession") use("tpope/vim-obsession")
use("norcalli/nvim-colorizer.lua") use("norcalli/nvim-colorizer.lua")
use("seanbreckenridge/gitsigns-yadm") -- bring yadm support back to gitsigns
use("ThePrimeagen/vim-be-good") -- get gud use("ThePrimeagen/vim-be-good") -- get gud
+5 -3
View File
@@ -4,6 +4,10 @@ if not setup then
end end
gitsigns.setup { gitsigns.setup {
_on_attach_pre =
function(_, callback)
vequire("gitsigns-yadm").yadm_signs(callback)
end,
signs = { signs = {
add = { text = '+' }, add = { text = '+' },
change = { text = '' }, change = { text = '' },
@@ -41,7 +45,5 @@ gitsigns.setup {
row = 0, row = 0,
col = 1 col = 1
}, },
yadm = { -- on_attach = function(bufnr)
enable = true
}
} }