From bf216fd8a781d378136bac6f115fb35b33ae3321 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Thu, 12 Aug 2021 01:07:24 -0700 Subject: [PATCH] init.vim: removed tmsvg/pear-tree in favor of jiangmiao/auto-pairs --- .config/nvim/init.vim | 57 ++++--------------------------------------- 1 file changed, 5 insertions(+), 52 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 52576c3..b5e8fbd 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -159,7 +159,6 @@ call plug#begin('$HOME/.vim/plugins/') """ Colors Plug 'joshdick/onedark.vim' " Theme (status line) Plug 'romgrk/doom-one.vim' " Theme (UI) - " Plug 'rakr/vim-one' " Theme (UI) Plug 'vim-airline/vim-airline' " Status line theme Plug 'Yggdroot/indentLine' " Indent lines Plug 'sheerun/vim-polyglot' " Syntax highlighting @@ -171,12 +170,11 @@ call plug#begin('$HOME/.vim/plugins/') Plug 'editorconfig/editorconfig-vim' " editorconfig support Plug 'neoclide/coc.nvim', {'branch': 'release'} " Code completion 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 """ Smaller IDE features Plug 'mbbill/undotree' " Undo tree - Plug 'tmsvg/pear-tree' " Quote pairing + Plug 'jiangmiao/auto-pairs' " Quote pairing Plug 'junegunn/vim-easy-align' Plug 'tpope/vim-repeat' " Repeatability for various tpope plugins Plug 'tpope/vim-surround' " Quote/parenthesis changing @@ -210,7 +208,7 @@ else set nocursorline endif -" Transparency +""" Transparency if match(&runtimepath, 'transparent') != -1 call g:background#clear_background() endif @@ -283,54 +281,9 @@ endif " if match(&runtimepath, 'ale') != -1 " endif -""" Language server configs (not avalible yet. wait until nvim version 5) -if match(&runtimepath, 'lspconfig') != -1 - " set completeopt=menuone,noinsert,noselect - " 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 , , and - let g:pear_tree_map_special_keys = 1 - - " Default mappings: - imap (PearTreeBackspace) - imap (PearTreeExpand) - imap (PearTreeFinishExpansion) - " Pear Tree also makes mappings for each opening and closing string. - " :help (PearTreeOpener) - " :help (PearTreeCloser) - - " Not mapped by default: - imap (PearTreeSpace) - " (PearTreeJump) - " (PearTreeExpandOne) - " (PearTreeJNR) - " End pear tree +""" Auto-pairs +if match(&runtimepath, 'autopairs') != -1 + let g:AutoPairsFlyMode = 1 endif """ Goyo