nvim: add neogit

pull/1/head
earnest ma 2021-12-27 22:04:27 -05:00
parent ec1c36ac61
commit 7da9729889
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 13 additions and 0 deletions

View File

@ -37,6 +37,9 @@ endif
call plug#begin(stdpath('data') . '/plugged')
Plug 'nvim-lua/plenary.nvim'
Plug 'TimUntersberger/neogit'
Plug 'tpope/vim-fugitive'
Plug 'editorconfig/editorconfig-vim'
@ -45,5 +48,15 @@ Plug 'wakatime/vim-wakatime'
call plug#end()
lua <<EOF
local neogit = require('neogit')
neogit.setup {
disable_commit_confirmation = true,
disable_insert_on_commit = true
}
neogit.config.use_magit_keybindings()
EOF
:nmap <C-x>g :Neogit<CR>
" no ex mode
nnoremap Q <Nop>