require("gitsigns").setup({ current_line_blame = true, current_line_blame_opts = { delay = 0 }, on_attach = function(bufnr) local gitsigns = require("gitsigns") local function map(mode, l, r, opts) opts = opts or {} opts.buffer = bufnr vim.keymap.set(mode, l, r, opts) end map("n", "gb", gitsigns.toggle_current_line_blame) map("n", "gB", function() gitsigns.blame_line({ full = true }) end) end, })