omnicompletion
とかいろいろあるけどどう違うねん。ということで調べる。
help ins-completion
help complete-functions
いろいろな補完
補完関数を定義
<C-X><C-U>
を set completefunc
で、
<C-X><C-O>
を set omnifunc
でユーザー定義できる。
のように定義する。
最初の実行時
On the first invocation the arguments are: a 1 a empty
候補の取得
On the second invocation the arguments are: a 0 a the text with which matches should match; the text that was located in the first call (can be empty)
補完候補
単なる文字列か以下のdictionary
非同期で更新
自動的にsuggest
- deoplete