From 9ed8a7491c9431663ed579fd561e605c2ba142c5 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sat, 20 Apr 2019 12:41:47 +0100 Subject: [PATCH] fix coc mappings --- config/plugins.nvim.vim | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/config/plugins.nvim.vim b/config/plugins.nvim.vim index 609b69e..ab9bdc3 100644 --- a/config/plugins.nvim.vim +++ b/config/plugins.nvim.vim @@ -41,12 +41,12 @@ let g:ale_sign_error = 'Α' let g:ale_sign_warning = 'α' + nmap gh (ale_hover) nmap \\ (ale_detail) nmap \f (ale_fix) nmap \r (ale_find_references) nmap \g (ale_go_to_definition) nmap \d (ale_documentation) - nmap \h (ale_hover) nmap \n (ale_next) nmap \p (ale_previous) @@ -60,25 +60,19 @@ let g:coc_snippet_prev = '' inoremap coc#refresh() - nnoremap K :call show_documentation() - nnoremap \c (coc-definition) - nnoremap \y (coc-type-definition) - nnoremap \i (coc-implementation) - nnoremap \r (coc-references) - nnoremap \m (coc-rename) + nnoremap gH :call CocAction('doHover') + nnoremap cf :call CocAction('doQuickfix') + nnoremap cd :call CocAction('jumpDefinition') + nnoremap ci :call CocAction('jumpImplementation') + nnoremap cr :call CocAction('jumpReferences') + nnoremap cn :call CocAction('rename') + nnoremap ca :call CocAction('codeAction') + nnoremap ca :call CocAction('documentSymbols') " vnoremap \f (coc-format-selected) " nnoremap \f (coc-format-selected) command! -nargs=0 Format :call CocAction('format') command! -nargs=? Fold :call CocAction('fold', ) - function! s:show_documentation() - if &filetype == 'vim' || &filetype == 'help' - execute 'h '.expand('') - else - call CocAction('doHover') - endif - endfunction - " }}} " #css3-syntax{{{ Plug 'hail2u/vim-css3-syntax'