Skip to content
This repository has been archived by the owner on Jul 27, 2018. It is now read-only.

how to directly autocompletion when I typed <cr> #209

Open
werckdd opened this issue Mar 23, 2018 · 1 comment
Open

how to directly autocompletion when I typed <cr> #209

werckdd opened this issue Mar 23, 2018 · 1 comment

Comments

@werckdd
Copy link

werckdd commented Mar 23, 2018

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>"

"}}}
@Shougo
Copy link

Shougo commented Mar 23, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants