summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/gitsigns.lua
blob: ae9b2db7a230bf75e2bce0df48ae551477b89407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
return {
    'lewis6991/gitsigns.nvim',
    cmd = 'Gitsigns',
    -- INFO: Disabled lazy loading to see if the errors stop
    -- Not sure if it's an issue with lazy loading or just a gitsigns bug
    -- INFO: re-enabled to see if the errors stop
    event = 'VeryLazy',
    config = function()
        require('gitsigns').setup()

        vim.keymap.set('n', '<leader>gd', '<cmd>Gitsigns toggle_deleted<cr>', { desc = '[G]it [D]eleted' })
        vim.keymap.set(
            'n',
            '<leader>gB',
            '<cmd>Gitsigns toggle_current_line_blame<cr>',
            { desc = '[G]it [B]lame Line' }
        )
    end,
}