vimrc: add/configure autopairs plugin

This commit is contained in:
surtur 2022-10-30 03:01:57 +01:00
parent 806a655e79
commit 932e3332ec
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -57,6 +57,7 @@ Plug 'jasonccox/vim-wayland-clipboard'
Plug 'junegunn/goyo.vim', { 'for': 'markdown' } Plug 'junegunn/goyo.vim', { 'for': 'markdown' }
Plug 'preservim/nerdcommenter' Plug 'preservim/nerdcommenter'
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'LunarWatcher/auto-pairs'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
" fugitive.vim: A Git wrapper so awesome, it should be illegal " fugitive.vim: A Git wrapper so awesome, it should be illegal
@ -452,6 +453,21 @@ let g:terraform_fold_sections=1
let g:terraform_fmt_on_save=1 let g:terraform_fmt_on_save=1
" autopairs
" sometimes issues with expanding {}
let g:AutoPairsMultilineClose = 0
let g:AutoPairsFlyMode = 0
let g:AutoPairsMapCR = 0
" inoremap <CR> <esc>:call autopairs#AutoPairsReturn()<cr>i
" let g:AutoPairsFlyModeBlacklist =
" let g:AutoPairsShortcutToggle = '<c-h>'
let b:AutoPairsShortcutToggle = ''
let b:AutoPairsShortcutToggleMultilineClose = ''
let g:AutoPairsShortcutToggle = ''
let g:AutoPairsShortcutToggleMultilineClose = ''
" nmap <c-m><c-h> :call autopairs#AutoPairsToggleMultilineClose()
" ctrlp " ctrlp
" Setup some default ignores " Setup some default ignores
let g:ctrlp_custom_ignore = { let g:ctrlp_custom_ignore = {