From 66b93f5a846e546a8d409f5d4a2d89fa21252ec8 Mon Sep 17 00:00:00 2001 From: Kurtis Moxley Date: Thu, 11 Aug 2022 16:35:49 +0800 Subject: [PATCH] Update vimrcs. --- vimrcs/plugins_config.vim | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/vimrcs/plugins_config.vim b/vimrcs/plugins_config.vim index f6324ba7..642b1738 100644 --- a/vimrcs/plugins_config.vim +++ b/vimrcs/plugins_config.vim @@ -193,17 +193,16 @@ xnoremap v :'<'>GBrowse! " Use tab for trigger completion with characters ahead and navigate. " NOTE: Use command ':verbose imap ' to make sure tab is not mapped by " other plugin before putting this into your config. -"inoremap -"" \ pumvisible() ? "\" : -"" \ check_back_space() ? "\" : -"" \ coc#refresh() -"inoremap pumvisible() ? "\" : "\" - -" Make auto-select the first completion item and notify coc.nvim to -" format on enter, could be remapped by other vim plugin -inoremap pumvisible() ? coc#_select_confirm() - \: "\u\\=coc#on_enter()\" +inoremap + \ coc#pum#visible() ? coc#pum#next(1): + \ CheckBackspace() ? "\" : + \ coc#refresh() +inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" +" Make to accept selected completion item or notify coc.nvim to format +" u breaks current undo, please make your own choice. +inoremap coc#pum#visible() ? coc#pum#confirm() + \: "\u\\=coc#on_enter()\" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Vim-autoformat """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -213,5 +212,4 @@ autocmd BufWrite * :Autoformat """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Rainbow Parentheses """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - let g:rainbow_active = 1