init.vim: removed tmsvg/pear-tree in favor of jiangmiao/auto-pairs

This commit is contained in:
PowerUser64 2021-08-12 01:07:24 -07:00
parent 373efd64d2
commit bf216fd8a7

View file

@ -159,7 +159,6 @@ call plug#begin('$HOME/.vim/plugins/')
""" Colors """ Colors
Plug 'joshdick/onedark.vim' " Theme (status line) Plug 'joshdick/onedark.vim' " Theme (status line)
Plug 'romgrk/doom-one.vim' " Theme (UI) Plug 'romgrk/doom-one.vim' " Theme (UI)
" Plug 'rakr/vim-one' " Theme (UI)
Plug 'vim-airline/vim-airline' " Status line theme Plug 'vim-airline/vim-airline' " Status line theme
Plug 'Yggdroot/indentLine' " Indent lines Plug 'Yggdroot/indentLine' " Indent lines
Plug 'sheerun/vim-polyglot' " Syntax highlighting Plug 'sheerun/vim-polyglot' " Syntax highlighting
@ -171,12 +170,11 @@ call plug#begin('$HOME/.vim/plugins/')
Plug 'editorconfig/editorconfig-vim' " editorconfig support Plug 'editorconfig/editorconfig-vim' " editorconfig support
Plug 'neoclide/coc.nvim', {'branch': 'release'} " Code completion Plug 'neoclide/coc.nvim', {'branch': 'release'} " Code completion
Plug 'dense-analysis/ale' " Code formatting, linting Plug 'dense-analysis/ale' " Code formatting, linting
" Plug 'neovim/nvim-lspconfig' " default language server configurations (neovim 0.5)
Plug 'dbeniamine/cheat.sh-vim' " cheat.sh Plug 'dbeniamine/cheat.sh-vim' " cheat.sh
""" Smaller IDE features """ Smaller IDE features
Plug 'mbbill/undotree' " Undo tree Plug 'mbbill/undotree' " Undo tree
Plug 'tmsvg/pear-tree' " Quote pairing Plug 'jiangmiao/auto-pairs' " Quote pairing
Plug 'junegunn/vim-easy-align' Plug 'junegunn/vim-easy-align'
Plug 'tpope/vim-repeat' " Repeatability for various tpope plugins Plug 'tpope/vim-repeat' " Repeatability for various tpope plugins
Plug 'tpope/vim-surround' " Quote/parenthesis changing Plug 'tpope/vim-surround' " Quote/parenthesis changing
@ -210,7 +208,7 @@ else
set nocursorline set nocursorline
endif endif
" Transparency """ Transparency
if match(&runtimepath, 'transparent') != -1 if match(&runtimepath, 'transparent') != -1
call g:background#clear_background() call g:background#clear_background()
endif endif
@ -283,54 +281,9 @@ endif
" if match(&runtimepath, 'ale') != -1 " if match(&runtimepath, 'ale') != -1
" endif " endif
""" Language server configs (not avalible yet. wait until nvim version 5) """ Auto-pairs
if match(&runtimepath, 'lspconfig') != -1 if match(&runtimepath, 'autopairs') != -1
" set completeopt=menuone,noinsert,noselect let g:AutoPairsFlyMode = 1
" let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
endif
""" Pear tree
if match(&runtimepath, 'peartree') != -1
let g:pear_tree_pairs = {
\ '(': {'closer': ')'},
\ '[': {'closer': ']'},
\ '{': {'closer': '}'},
\ "'": {'closer': "'"},
\ '"': {'closer': '"'}
\ }
" See pear-tree/after/ftplugin/ for filetype-specific matching rules
" Pear Tree is enabled for all filetypes by default:
let g:pear_tree_ft_disabled = []
" Pair expansion is dot-repeatable by default:
let g:pear_tree_repeatable_expand = 1
" Smart pairs are disabled by default:
let g:pear_tree_smart_openers = 1
let g:pear_tree_smart_closers = 1
let g:pear_tree_smart_backspace = 1
" If enabled, smart pair functions timeout after 60ms:
let g:pear_tree_timeout = 60
" Automatically map <BS>, <CR>, and <Esc>
let g:pear_tree_map_special_keys = 1
" Default mappings:
imap <BS> <Plug>(PearTreeBackspace)
imap <CR> <Plug>(PearTreeExpand)
imap <Esc> <Plug>(PearTreeFinishExpansion)
" Pear Tree also makes <Plug> mappings for each opening and closing string.
" :help <Plug>(PearTreeOpener)
" :help <Plug>(PearTreeCloser)
" Not mapped by default:
imap <Space> <Plug>(PearTreeSpace)
" <Plug>(PearTreeJump)
" <Plug>(PearTreeExpandOne)
" <Plug>(PearTreeJNR)
" End pear tree
endif endif
""" Goyo """ Goyo