ncm2 / ncm2-ultisnips

44 stars 3 forks source link

Compatible issues with auto-pairs #9

Closed xu-cheng closed 5 years ago

xu-cheng commented 6 years ago

Hi, thanks for the plugin. I wonder if there is a possibility to make this plugin to be compatible with auto-pairs

Some related information can be found at:

However I am not sure what the equivalent keymap for ncm2-ultisnips should be.

smutch commented 5 years ago

I'm not sure if this is just specific to my config, but I was able to get things working with:

inoremap <silent> <expr> <CR> ncm2_ultisnips#expand_or("\<CR>\<C-R>=AutoPairsReturn()<CR>", 'n')

This solution has had minimal testing on my part and may not work in all situations though...

roxma commented 5 years ago

Duplicated https://github.com/ncm2/ncm2/issues/129