Skip to content

jsit/asyncomplete-user.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

asyncomplete-user.vim

User completion source for asyncomplete.vim

(:h compl-function)

Install

Plug 'prabirshrestha/asyncomplete.vim'
Plug 'jsit/asyncomplete-user.vim'

Register asyncomplete-user.vim

call asyncomplete#register_source(asyncomplete#sources#user#get_source_options({
\ 'name': 'user',
\ 'whitelist': ['*'],
\ 'blacklist': ['c', 'cpp', 'html'],
\ 'completor': function('asyncomplete#sources#user#completor')
\  }))

Create user-defined completion function

To make it easier to create a user-defined completefunc, try the vim-customcpt plugin.

Note

If completefunc change cursor position, asyncomplete-user.vim does not work correctly.

For example, c, cpp, HTML are blacklisted above because Vim's default completefunc repositions the cursor leading to quirky behaviour. You can reenable if you are using a more appropriate completefunc.

Not work correctly

  • rubycomplete#Complete

About

User completion source for asyncomplete.vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%