[nvim] add a mapping for showing the signature help
This commit is contained in:
parent
93b0670f86
commit
b185e78886
|
@ -36,6 +36,8 @@ endif
|
|||
let g:coc_snippet_prev = '<S-Tab>'
|
||||
|
||||
inoremap <silent><expr> <C-Space> coc#refresh()
|
||||
inoremap <silent> <A-s> <Cmd>call CocActionAsync('showSignatureHelp')<CR>
|
||||
inoremap <F1> <A-s>
|
||||
|
||||
nmap <silent> [c <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> ]c <Plug>(coc-diagnostic-next)
|
||||
|
@ -44,9 +46,9 @@ endif
|
|||
nmap <silent> <space>gt <Plug>(coc-type-definition)
|
||||
nmap <silent> <space>gi <Plug>(coc-implementation)
|
||||
nmap <silent> <space>gr <Plug>(coc-references)
|
||||
nmap <silent> <F2> <Plug>(coc-rename)
|
||||
nmap <silent> <A-CR> <Plug>(coc-codeaction)
|
||||
vmap <silent> <A-CR> <Plug>(coc-codeaction-selected)
|
||||
nmap <silent> <F2> <Plug>(coc-rename)
|
||||
nmap <silent> <A-CR> <Plug>(coc-codeaction-line)
|
||||
vmap <silent> <A-CR> <Plug>(coc-codeaction-selected)
|
||||
" nmap <silent> <leader>qf <Plug>(coc-fix-current)
|
||||
|
||||
nnoremap <silent> <space>l <Cmd>CocList<CR>
|
||||
|
|
|
@ -138,8 +138,8 @@ set commentstring=//%s
|
|||
augroup vimrc-editing-visual-star-search
|
||||
autocmd!
|
||||
autocmd VimEnter *
|
||||
\ xmap * :<C-u>call <SID>VisualStarSearch('/')<CR>n
|
||||
\|xmap # :<C-u>call <SID>VisualStarSearch('?')<CR>N
|
||||
\ xmap * :<Cmd>call <SID>VisualStarSearch('/')<CR>n
|
||||
\|xmap # :<Cmd>call <SID>VisualStarSearch('?')<CR>N
|
||||
augroup END
|
||||
|
||||
" }}}
|
||||
|
|
|
@ -29,7 +29,7 @@ nnoremap <silent><expr> <CR> empty(&buftype) ? ":write<bar>wall\<CR>" : "\<CR>"
|
|||
let g:loaded_netrwPlugin = 1
|
||||
" re-add Netrw's gx mappings since we've disabled them
|
||||
nnoremap <silent> gx <Cmd>call netrw#BrowseX(expand('<cfile>'),netrw#CheckIfRemote())<CR>
|
||||
xnoremap <silent> gx :<C-u>call netrw#BrowseXVis()<CR>
|
||||
xnoremap <silent> gx :<Cmd>call netrw#BrowseXVis()<CR>
|
||||
" }}}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue