Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supertab shows other suggestions as OmniComplete #215

Closed
danrot opened this issue Mar 6, 2021 · 1 comment
Closed

Supertab shows other suggestions as OmniComplete #215

danrot opened this issue Mar 6, 2021 · 1 comment

Comments

@danrot
Copy link

danrot commented Mar 6, 2021

I just installed supertab, and was expecting to see the exact same results when I press "tab" now as with "-", but I see many more, and also a lot of this completion suggestions do not make any sense in the current context. Have tried that using OmniSharp.

Is there any way to configure that supertab should show the exact same suggestions as when typing "-"? Tried setting the "SuperTabCompletionContexts", but didn't get the desired result...

@danrot
Copy link
Author

danrot commented Mar 7, 2021

Figured it out, the following snippet seems to do the trick:

let g:SuperTabDefaultCompletionType = 'context'
  autocmd FileType *
    \ if &omnifunc != '' |
    \   call SuperTabChain(&omnifunc, "<c-p>") |
    \ endif

Although the documentation is pretty hard to read...

@danrot danrot closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant