ddc.vimのsource
ddc-around
カーソル周囲の単語補完
https://github.com/Shougo/ddc-around
ddc-file
ファイルパス補完
ddc-nextword
nextword
を使った補完
https://github.com/Shougo/ddc-nextword
https://github.com/high-moctane/nextword
https://github.com/high-moctane/nextword-data
ddc-nvim-lsp
ddc-buffer
buffer内の単語をソースにする
https://github.com/matsui54/ddc-buffer
ddc-dictionary
実装方法
BaseSource
を継承したクラスをexportする
型定義:
https://deno.land/x/ddc_vim@v1.3.0/types.ts
具体的なコードは↓のあたりを参考にする
https://github.com/matsui54/ddc-dictionary/blob/main/denops/%40ddc-sources/dictionary.ts
https://github.com/matsui54/ddc-buffer/blob/main/denops/%40ddc-sources/buffer.ts
https://github.com/shun/ddc-vim-lsp/blob/main/denops/%40ddc-sources/vim-lsp.ts
LSPからデータを取得しているが、コード自体はかなり単純
#2021-10-09
20:35:36