|
|
@ -1,6 +1,4 @@
|
|
|
|
" Use tab for trigger completion with characters ahead and navigate.
|
|
|
|
" Use tab for trigger completion with characters ahead and navigate.
|
|
|
|
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
|
|
|
|
|
|
|
" other plugin before putting this into your config.
|
|
|
|
|
|
|
|
inoremap <silent><expr> <TAB>
|
|
|
|
inoremap <silent><expr> <TAB>
|
|
|
|
\ pumvisible() ? "\<C-n>" :
|
|
|
|
\ pumvisible() ? "\<C-n>" :
|
|
|
|
\ <SID>check_back_space() ? "\<TAB>" :
|
|
|
|
\ <SID>check_back_space() ? "\<TAB>" :
|
|
|
@ -86,3 +84,13 @@ command! -nargs=? Fold :call CocAction('fold', <f-args>)
|
|
|
|
|
|
|
|
|
|
|
|
" Add `:OR` command for organize imports of the current buffer.
|
|
|
|
" Add `:OR` command for organize imports of the current buffer.
|
|
|
|
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
|
|
|
|
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" <M-Esc>" Remap <C-f> and <C-b> for scroll float windows/popups.
|
|
|
|
|
|
|
|
if has('nvim-0.4.0') || has('patch-8.2.0750')
|
|
|
|
|
|
|
|
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
|
|
|
|
|
|
|
|
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
|
|
|
|
|
|
|
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
|
|
|
|
|
|
|
|
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
|
|
|
|
|
|
|
|
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
|
|
|
|
|
|
|
|
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
|
|
|
|
|
|
|
endif
|
|
|
|