fix coc mappings

This commit is contained in:
ManjaroOne666 2019-04-20 12:41:47 +01:00
parent 3f5d382189
commit 9ed8a7491c
1 changed files with 9 additions and 15 deletions

View File

@ -41,12 +41,12 @@
let g:ale_sign_error = 'Α' let g:ale_sign_error = 'Α'
let g:ale_sign_warning = 'α' let g:ale_sign_warning = 'α'
nmap gh <Plug>(ale_hover)
nmap \\ <Plug>(ale_detail) nmap \\ <Plug>(ale_detail)
nmap \f <Plug>(ale_fix) nmap \f <Plug>(ale_fix)
nmap \r <Plug>(ale_find_references) nmap \r <Plug>(ale_find_references)
nmap \g <Plug>(ale_go_to_definition) nmap \g <Plug>(ale_go_to_definition)
nmap \d <Plug>(ale_documentation) nmap \d <Plug>(ale_documentation)
nmap \h <Plug>(ale_hover)
nmap \n <Plug>(ale_next) nmap \n <Plug>(ale_next)
nmap \p <Plug>(ale_previous) nmap \p <Plug>(ale_previous)
@ -60,25 +60,19 @@
let g:coc_snippet_prev = '<s-tab>' let g:coc_snippet_prev = '<s-tab>'
inoremap <silent><expr> <c-n> coc#refresh() inoremap <silent><expr> <c-n> coc#refresh()
nnoremap <silent> K :call <SID>show_documentation()<CR> nnoremap <silent> <silent> gH :call CocAction('doHover')<CR>
nnoremap <silent> \c <Plug>(coc-definition) nnoremap <silent> <space>cf :call CocAction('doQuickfix')<CR>
nnoremap <silent> \y <Plug>(coc-type-definition) nnoremap <silent> <space>cd :call CocAction('jumpDefinition')<CR>
nnoremap <silent> \i <Plug>(coc-implementation) nnoremap <silent> <space>ci :call CocAction('jumpImplementation')<CR>
nnoremap <silent> \r <Plug>(coc-references) nnoremap <silent> <space>cr :call CocAction('jumpReferences')<CR>
nnoremap \m <Plug>(coc-rename) nnoremap <silent> <space>cn :call CocAction('rename')<CR>
nnoremap <silent> <space>ca :call CocAction('codeAction')<CR>
nnoremap <silent> <space>ca :call CocAction('documentSymbols')<CR>
" vnoremap \f <Plug>(coc-format-selected) " vnoremap \f <Plug>(coc-format-selected)
" nnoremap \f <Plug>(coc-format-selected) " nnoremap \f <Plug>(coc-format-selected)
command! -nargs=0 Format :call CocAction('format') command! -nargs=0 Format :call CocAction('format')
command! -nargs=? Fold :call CocAction('fold', <f-args>) command! -nargs=? Fold :call CocAction('fold', <f-args>)
function! s:show_documentation()
if &filetype == 'vim' || &filetype == 'help'
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
" }}} " }}}
" #css3-syntax{{{ " #css3-syntax{{{
Plug 'hail2u/vim-css3-syntax' Plug 'hail2u/vim-css3-syntax'