Provides intelligent English autocomplete for asyncomplete.vim via mocword.
asyncomplete-mocword_demo.mp4
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'kg8m/asyncomplete-mocword.vim'
You also need to install Mocword and Mocword-data.
call asyncomplete#register_source(asyncomplete#sources#mocword#get_source_options({
\ "name": "mocword",
\ "allowlist": ["*"],
\ "args": ["-l", "100"],
\ "completor": function("asyncomplete#sources#mocword#completor")
\ }))
Note: args
is optional. It will be passed as the mocword
arguments.