summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/neogit.lua
blob: e2d4b2a225b7828a9329a9972e76469728c6bd18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
return {
    'NeogitOrg/neogit',
    cmd = 'Neogit',
    keys = {
        { '<leader>gs', '<cmd>Neogit<cr>' },
    },
    opts = function()
        return {
            commit_editor = { spell_check = false },
            mappings = {
                commit_editor = {
                    ['<C-y>'] = 'Submit',
                    ['<C-n>'] = 'Abort',
                },
                commit_editor_I = {
                    ['<C-y>'] = 'Submit',
                    ['<C-n>'] = 'Abort',
                },
                popup = {
                    ['p'] = 'PushPopup',
                    ['P'] = 'PullPopup',
                },
            },
        }
    end,
}