ervandew / supertab

Perform all your vim insert mode completions with Tab
3.17k stars 216 forks source link

Using <c-p> completion on text, Omni completion on objects. #189

Open ajcrites opened 7 years ago

ajcrites commented 7 years ago

Based on my reading of Supertab's docs this is supposed to be the default behavior, but I can't get this to work with my TypeScript setup and <tab> will attempt OmniCompletion in text completion cases.

let g:SuperTabDefaultCompletionType = 'context'
let g:SuperTabContextDefaultCompletionType = '<c-x><c-o>'

If I don't have these set, OmniCompletion is never attempted. If I set them, then OmniCompletion is always attempted.

th<tab> (omni, but I want <c-p> text completion)
this.<tab> (also omni, but this is correct)

Would there be any reason why Supertab is attempting OmniCompletion out of context?