diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index e66ed94..b269c8e 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -2,6 +2,7 @@ syntax on filetype indent on let base16colorspace=256 +let mapleader="½" set encoding=utf-8 set clipboard=unnamed set clipboard+=unnamedplus @@ -136,7 +137,7 @@ command! -bang -nargs=? -complete=dir HFiles map :Files map :HFiles -"Mappings +" Mappings :vmap r "_dP :nmap :w :imap :wa @@ -146,6 +147,10 @@ nnoremap nnoremap nnoremap nnoremap :%!jq '.' +nmap gn (GitGutterNextHunk) " git next +nmap gp (GitGutterPrevHunk) " git previous +nmap ga (GitGutterStageHunk) " git add (chunk) +nmap gu (GitGutterUndoHunk) " git undo (chunk) "AutoCommands au BufWinEnter * set number