From 87a2859dfd62b057811a9fc54109498a09686290 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 13 Apr 2020 13:09:54 -0400 Subject: auto push --- modules/coc.vim | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) (limited to 'modules/coc.vim') diff --git a/modules/coc.vim b/modules/coc.vim index 12f553ac..54451731 100644 --- a/modules/coc.vim +++ b/modules/coc.vim @@ -73,13 +73,6 @@ endfunction " Highlight the symbol and its references when holding the cursor. autocmd CursorHold * silent call CocActionAsync('highlight') -" Symbol renaming. -nmap rn (coc-rename) - -" Formatting selected code. -xmap f (coc-format-selected) -nmap f (coc-format-selected) - augroup mygroup autocmd! " Setup formatexpr specified filetype(s). @@ -88,29 +81,6 @@ augroup mygroup autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') augroup end -" Applying codeAction to the selected region. -" Example: `aap` for current paragraph -xmap a (coc-codeaction-selected) -nmap a (coc-codeaction-selected) - -" Remap keys for applying codeAction to the current line. -nmap ac (coc-codeaction) -" Apply AutoFix to problem on the current line. -nmap qf (coc-fix-current) - -" Introduce function text object -" NOTE: Requires 'textDocument.documentSymbol' support from the language server. -xmap if (coc-funcobj-i) -xmap af (coc-funcobj-a) -omap if (coc-funcobj-i) -omap af (coc-funcobj-a) - -" Use for selections ranges. -" NOTE: Requires 'textDocument/selectionRange' support from the language server. -" coc-tsserver, coc-python are the examples of servers that support it. -"nmap (coc-range-select) -"xmap (coc-range-select) - " Add `:Format` command to format current buffer. command! -nargs=0 Format :call CocAction('format') @@ -129,7 +99,7 @@ set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " Show all diagnostics. nnoremap a :CocList diagnostics " Manage extensions. -nnoremap e :CocList extensions +nnoremap x :CocList extensions " Show commands. nnoremap c :CocList commands " Find symbol of current document. @@ -142,3 +112,5 @@ nnoremap j :CocNext nnoremap k :CocPrev " Resume latest coc list. nnoremap p :CocListResume + +nmap (pydocstring) -- cgit v1.2.3