-
Notifications
You must be signed in to change notification settings - Fork 49
TODO: integrate with ultisnips for completions with snippet #36
Comments
Ultisnips is kind of heavy and complicated for me. So I started looking into neosnippet by @Shougo. It's more lightweight and easier to integrate, since it has been integrated in neocomplete already. Although I don't enjoy the display of '< Requirement: installation of neosnippet and A This feature is still experimental. Besides, the syntax of neosnippet by @Shougo and snipmate maintained by @garbas seems to be compatible at some level. I'll look into snipmate as another alternative when I have some free time available. |
Closing this, snipmate support may be implemented in the future. But this is not high priority. |
snipmate is supported now config: let g:snips_no_mappings = 1
" imap <expr> <c-u> pumvisible() ? "\<c-y>\<Plug>snipMateTrigger" : "\<Plug>snipMateTrigger"
" wrap the mapping
imap <expr> <Plug>(snipmate_force_trigger) pumvisible() ? "\<c-y>\<Plug>snipMateTrigger" : "\<Plug>snipMateTrigger"
" show a list of snippets when no the user has typed nothing
inoremap <silent> <c-u> <c-r>=cm#sources#snipmate#trigger_or_popup("\<Plug>(snipmate_force_trigger)")<cr>
vmap <c-u> <Plug>snipMateTrigger
imap <expr> <c-j> pumvisible() ? "\<c-y>\<Plug>snipMateNextOrTrigger" : "\<Plug>snipMateNextOrTrigger"
vmap <c-j> <Plug>snipMateNextOrTrigger
imap <expr> <c-k> pumvisible() ? "\<c-y>\<Plug>snipMateBack" : "\<Plug>snipMateBack"
vmap <c-k> <Plug>snipMateBack |
Does anything special need to be done in order to get snippets provided by Ultisnips to expand? |
No. This issue is about parameter expansion. |
@Battleroid |
Thank you, I'll poke at it. |
For example:
|
is the cursor position afterfoobar
is completed by NCM, then press ultisnips expand trigger should expand the completion intoI'm not sure whether this is possible but it's worth a try
The text was updated successfully, but these errors were encountered: