From b4d8372e1781ddbed9b5de69fa0822d1b82f6931 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 25 Jun 2020 14:03:49 +0200 Subject: [PATCH] Disable coc. --- vimrc | 126 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/vimrc b/vimrc index dcd9cd4..03e5ae8 100644 --- a/vimrc +++ b/vimrc @@ -107,7 +107,7 @@ Plug '~/dgapt', { 'rtp': 'vim' } " Plug '~/lean.vim' Plug 'leanprover/lean.vim' -Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}} +" Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}} Plug 'rickhowe/diffchar.vim' @@ -202,65 +202,65 @@ augroup my_cm_setup \ }) augroup END -" coc.nvim - - -inoremap coc#refresh() - -" Use for confirm completion, `u` means break undo chain at current position. -" Coc only does snippet and additional edit on confirm. -inoremap pumvisible() ? "\" : "\u\" - -" Use `[c` and `]c` for navigate diagnostics -nmap [c (coc-diagnostic-prev) -nmap ]c (coc-diagnostic-next) - -" Remap keys for gotos -nmap gd (coc-definition) -nmap gy (coc-type-definition) -nmap gi (coc-implementation) -nmap gr (coc-references) - -" Use K for show documentation in preview window -nnoremap K :call show_documentation() - -function! s:show_documentation() - if &filetype == 'vim' - execute 'h '.expand('') - else - call CocAction('doHover') - endif -endfunction - -" Highlight symbol under cursor on CursorHold -autocmd CursorHold * silent call CocActionAsync('highlight') - -" Remap for rename current word -nmap rn (coc-rename) - -" Remap for format selected region -vmap f (coc-format-selected) -nmap f (coc-format-selected) - -augroup mygroup - autocmd! - " Setup formatexpr specified filetype(s). - autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') - " Update signature help on jump placeholder - autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') -augroup end - -" Remap for do codeAction of selected region, ex: `aap` for current paragraph -vmap a (coc-codeaction-selected) -nmap a (coc-codeaction-selected) - -" Remap for do codeAction of current line -nmap ac (coc-codeaction) -" Fix autofix problem of current line -nmap qf (coc-fix-current) - -" Use `:Format` for format current buffer -command! -nargs=0 Format :call CocAction('format') - -" Use `:Fold` for fold current buffer -command! -nargs=? Fold :call CocAction('fold', ) +" " coc.nvim +" +" +" inoremap coc#refresh() +" +" " Use for confirm completion, `u` means break undo chain at current position. +" " Coc only does snippet and additional edit on confirm. +" inoremap pumvisible() ? "\" : "\u\" +" +" " Use `[c` and `]c` for navigate diagnostics +" nmap [c (coc-diagnostic-prev) +" nmap ]c (coc-diagnostic-next) +" +" " Remap keys for gotos +" nmap gd (coc-definition) +" nmap gy (coc-type-definition) +" nmap gi (coc-implementation) +" nmap gr (coc-references) +" +" " Use K for show documentation in preview window +" nnoremap K :call show_documentation() +" +" function! s:show_documentation() +" if &filetype == 'vim' +" execute 'h '.expand('') +" else +" call CocAction('doHover') +" endif +" endfunction +" +" " Highlight symbol under cursor on CursorHold +" autocmd CursorHold * silent call CocActionAsync('highlight') +" +" " Remap for rename current word +" nmap rn (coc-rename) +" +" " Remap for format selected region +" vmap f (coc-format-selected) +" nmap f (coc-format-selected) +" +" augroup mygroup +" autocmd! +" " Setup formatexpr specified filetype(s). +" autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') +" " Update signature help on jump placeholder +" autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') +" augroup end +" +" " Remap for do codeAction of selected region, ex: `aap` for current paragraph +" vmap a (coc-codeaction-selected) +" nmap a (coc-codeaction-selected) +" +" " Remap for do codeAction of current line +" nmap ac (coc-codeaction) +" " Fix autofix problem of current line +" nmap qf (coc-fix-current) +" +" " Use `:Format` for format current buffer +" command! -nargs=0 Format :call CocAction('format') +" +" " Use `:Fold` for fold current buffer +" command! -nargs=? Fold :call CocAction('fold', )