diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 4df5ce7..30e903a 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -75,13 +75,18 @@ Plug 'neomake/neomake' Plug 'sk1418/QFGrep' Plug 'ronakg/quickr-cscope.vim' Plug 'stefandtw/quickfix-reflector.vim' -" Absolute essentials miscellaneous +" Text Object plugins +Plug 'kana/vim-textobj-user' +Plug 'danidiaz/vim-textobj-do-block' +Plug 'michaeljsmith/vim-indent-object' +Plug 'wellle/targets.vim' Plug 'tpope/vim-surround' +Plug 'junegunn/vim-easy-align' +" Absolute essentials miscellaneous Plug 'tpope/vim-repeat' Plug 'tpope/vim-eunuch' Plug 'tpope/vim-sleuth' Plug 'tpope/vim-vinegar' -Plug 'wellle/targets.vim' Plug 'Yggdroot/indentLine' " LC related Plug 'liuchengxu/vista.vim' @@ -363,6 +368,11 @@ nnoremap aj :AnyJump nnoremap ab :AnyJumpBack nnoremap al :AnyJumpLastResults +" Start interactive EasyAlign in visual mode (e.g. vipga) +xmap ga (EasyAlign) +" Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga (EasyAlign) + command! -bang -nargs=* GGrep \ call fzf#vim#grep( \ 'git grep --line-number '.shellescape(), 0,