ddc-dictionary
Unix辞書を使えるようにしてくれるddc.vimのsource
/icons/github.iconmatsui54/ddc-dictionary
使い方
set dictionaryに入っている辞書ファイルパスの他に、手動で使用する辞書ファイルのパスを設定できる
showMenuをv:true(default)にすると、候補に挙がった単語の出典元辞書ファイルパスが一緒に表示される
takker.iconはパスが長くて見ずらいので無効にしている
辞書はとりあえずwamericanをsudo apt install wamerican入れておけばいい
wamerican-hugeもあるが、量が多すぎて補完が遅くなる
'maxCandidates': 50で補完候補を絞っても遅い
code:vim
call ddc#custom#patch_global('sourceParams', {
\ 'dictionary': {'dictPaths':
\ ['/usr/share/dict/american-english',
\ '/usr/share/dict/words',],
\ 'smartCase': v:true,
\ 'showMenu': v:false,
\ }
\})
call ddc#custom#patch_global('sources', 'dictionary')
call ddc#custom#patch_global('sourceOptions', {
\ '_': {'matchers': 'matcher_head'},
\ 'dictionary': {'mark': 'D'},
\})
#2022-09-10 09:33:19
#2021-11-13 12:31:57