diff options
| -rw-r--r-- | lua/plugins.lua | 11 | ||||
| -rw-r--r-- | plugin/git.vim | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 498bf55..746e2d9 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -94,7 +94,16 @@ return require('packer').startup(function(use) use 'tpope/vim-vinegar' use 'tpope/vim-eunuch' use 'tpope/vim-commentary' - use 'airblade/vim-gitgutter' + + use { + 'lewis6991/gitsigns.nvim', + requires = { + 'nvim-lua/plenary.nvim' + }, + config = function() + require('gitsigns').setup() + end + } use 'tpope/vim-tbone' diff --git a/plugin/git.vim b/plugin/git.vim index 3000140..fc65e3f 100644 --- a/plugin/git.vim +++ b/plugin/git.vim @@ -1,8 +1,8 @@ -nmap ]h <Plug>(GitGutterNextHunk) -nmap [h <Plug>(GitGutterPrevHunk) +" nmap ]h <Plug>(GitGutterNextHunk) +" nmap [h <Plug>(GitGutterPrevHunk) -nmap ghs <Plug>(GitGutterStageHunk) -nmap ghu <Plug>(GitGutterUndoHunk) +" nmap ghs <Plug>(GitGutterStageHunk) +" nmap ghu <Plug>(GitGutterUndoHunk) " nmap <Leader>gs :G<CR> nmap <Leader>gdh :diffget //2<CR> |