Skip to content

Instantly share code, notes, and snippets.

@othree
Created November 7, 2014 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save othree/03c9c7b40407c99b4061 to your computer and use it in GitHub Desktop.
Save othree/03c9c7b40407c99b4061 to your computer and use it in GitHub Desktop.
let behavs = { 'javascript': [], 'html': [] }
call add(behavs.javascript, {
\ 'command' : "\<C-x>\<C-u>",
\ 'completefunc' : 'acp#completeSnipmate',
\ 'meets' : 'acp#meetsForSnipmate',
\ 'onPopupClose' : 'acp#onPopupCloseSnipmate',
\ 'repeat' : 0,
\})
call add(behavs.javascript, {
\ 'command' : g:acp_behaviorKeywordCommand,
\ 'meets' : 'acp#meetsForKeyword',
\ 'repeat' : 0,
\ })
call add(behavs.javascript, {
\ 'command' : "\<C-x>\<C-o>",
\ 'meets' : 'AcpMeetsForJavaScript',
\ 'repeat' : 0,
\})
call add(behavs.html, {
\ 'command' : "\<C-x>\<C-o>",
\ 'meets' : 'AcpMeetsForHtmlOmni',
\ 'repeat' : 1,
\})
let g:acp_behavior = {}
call extend(g:acp_behavior, behavs, 'keep')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment