nvim-completion-manager icon indicating copy to clipboard operation
nvim-completion-manager copied to clipboard

how to directly autocompletion when I typed <cr>

Open werckdd opened this issue 6 years ago • 1 comments

How to directly autocompletion when I typed <cr>? when i typed <cr> ,the annoying messages below just showed.I can't get the expand expression until i typed 1. I don't konw if it could be fix by plugin ultisnips or nvim-completion-manager.

2

here is my nvim configure

" fzf.vim and ultisnips-------------------------------------------------------------------{{{

  set rtp+=/usr/local/opt/fzf

  " ultisnips
    let g:UltiSnipsSnippetDirectories = ['/Users/qj/.config/nvim/UltiSnips']
  " set rtp+=/Users/qj/.config/nvim/ultisnips
  " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
	let g:UltiSnipsExpandTrigger = '<C-j>'
	let g:UltiSnipsJumpForwardTrigger = '<C-f>'
	let g:UltiSnipsJumpBackwardTrigger = '<C-b>'
	" let g:UltiSnipsListSnippets="<c-s-j>"
	" If you want :UltiSnipsEdit to split your window.
	let g:UltiSnipsEditSplit="vertical"
"}}} 

" nvim-completion-manager------------------------------------------------------------------{{{

  imap <expr> <CR>  (pumvisible() ?  "\<c-y>\<Plug>(expand_or_nl)" : "<Plug>delimitMateCR")
	imap <expr> <Plug>(expand_or_nl) (cm#completed_is_snippet() ? "\<C-j>":"\<CR>")
	inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
	inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

"}}}

werckdd avatar Mar 23 '18 02:03 werckdd

It is UltiSnips feature. Not nvim-completion-manager issue.

Shougo avatar Mar 23 '18 03:03 Shougo