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

async complete #9

Closed
charliewilco opened this issue Dec 18, 2018 · 0 comments
Closed

async complete #9

charliewilco opened this issue Dec 18, 2018 · 0 comments

Comments

@charliewilco
Copy link
Owner

" Asyncomplete


let g:asyncomplete_auto_popup = 1
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>"
set completeopt+=preview
autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif

if has('python3')
  "" TypeScript
  call asyncomplete#register_source(asyncomplete#sources#tscompletejob#get_source_options({
        \ 'name': 'tscompletejob',
        \ 'whitelist': ['typescript'],
        \ 'completor': function('asyncomplete#sources#tscompletejob#completor'),
        \ }))

  "" UtiliSnips
    call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({
        \ 'name': 'ultisnips',
        \ 'whitelist': ['*'],
        \ 'completor': function('asyncomplete#sources#ultisnips#completor'),
        \ }))

endif
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