/asyncomplete-mocword.vim

Provides intelligent English autocomplete for asyncomplete.vim via mocword

Primary LanguageVim ScriptMIT LicenseMIT

asyncomplete-mocword.vim

Provides intelligent English autocomplete for asyncomplete.vim via mocword.

Demo

asyncomplete-mocword_demo.mp4

Installing

Plug 'prabirshrestha/asyncomplete.vim'
Plug 'kg8m/asyncomplete-mocword.vim'

You also need to install Mocword and Mocword-data.

Registration

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.