Closed osleg closed 7 years ago
I'll need your minimal vimrc and reproducing steps to reproduce this issue.
This issue may have useful information: https://github.com/roxma/nvim-completion-manager/issues/89#issuecomment-309207317
I used this as super minimal vimrc
call plug#begin('~/.vim/plugged')
Plug 'roxma/nvim-completion-manager'
Plug 'jmcantrell/vim-virtualenv', has('gui') ? {'for': ['python']} : {}
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
call plug#end()
imap <expr> <CR> (pumvisible() ? "\<c-y>\<Plug>(expand_or_nl)" : "\<CR>")
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>"
let g:UltiSnipsExpandTrigger = '<C-j>'
let g:UltiSnipsJumpForwardTrigger = '<C-j>'
let g:UltiSnipsJumpBackwardTrigger = '<C-k>'
let g:UltiSnipsListSnippets="<c-s-j>"
And it worked, so I guess the problem is somewhere in the config file, any idea how to debug this except of commenting most of config and adding stuff line by line?
Maybe there's mapping collision on the <CR>
key among your plugins.
I'm closing this issue, since this is not NCM issue.
Feel free to continue the discussion.
@osleg , did you find out what was the culprif of <Plug>(expand_or_nl)
? I'm having exactly the same problem..
Unfortunately no, I just reverted to using
In my vimrc I have to expand ultisnip
So I added the mappings as advised on help
Tho instead of triggering the snippet I'm getting
<Plug>(expand_or_nl)
printed out