You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a setting let g:xptemplate_minimal_prefix = 'full' that tells xptemplate expand only when full trigger pattern matched: f<tab> does not trigger for, only for<tab> expands to a for loop snippet.
And with another setting let g:xptemplate_fallback = '<C-n>' you could define what to do when no trigger pattern matches.
With this <C-n> xptemplate starts a word completion. Like this:
Changing <C-n> to the YouCompleteMe trigger key to get what you want.
Thank you so much.
After a try, for always expanded by YouCompleteMe. No template written by Xptemplate.
`
" Xpt Template
let g:xptemplate_key = '<Tab>'
let g:xptemplate_key_pum_only = '<S-Tab>'
let g:xptemplate_goback = '<C-g>'
let g:xptemplate_to_right = '<C-;>'
let g:xptemplate_vars = "author=your_name&email=[email protected]&..."
" Ycm hook
let g:xptemplate_minimal_prefix = 'full'
let g:xptemplate_fallback = '<C-n>'
" }}}
" YouCompleteMe {{{
" ycm-core/YouCompleteMe#1932
" trigger completion key
let g:ycm_key_invoke_completion = '<C-n>'
let g:ycm_key_list_select_completion = "<C-n>"
Hi,
Using YouCompleteMe, it could be fine to keep trig of Xptemplate in order :
Thank you
NiVa
The text was updated successfully, but these errors were encountered: