denite.nvim
キーマッピング
Source
rplugin/python3/denite/source/**/*.py
に定義する。
プロパティ
.kind
候補のKind
.name
(必須)
ソースの名前を定義する。
.__{name}
ソース固有の情報
メソッド
#__init__(self, vim)
super()
を呼ぶ必要がある。
#gather_candidates(self, context)
(必須)
候補の一覧を返却する。
#get_status(self, context)
statuslineに表示するステータスを返却する。
Kind
rplugin/python3/denite/kind/**/*.py
に定義する。
プロパティ
.name
Kindの名前
.default_action
デフォルトで実行されるアクションの名前を文字列で指定する。
.persist_actions
実行後にDeniteバッファを閉じないアクションの名前を文字列のリストで指定する。
.redraw_actions
実行後にDeniteバッファを再描画するアクションの名前を文字列のリストで指定する。
メソッド
#__init__(self, vim)
super()
を呼ぶ必要がある。
#action_{action_name}(self, context)
アクションを実装する。
context
Source#gather_candidates
等の引数として受け取る辞書。
args
Sourceの引数
is_async
非同期で候補を収集する際は、 True
に設定する。
非同期での候補の収集が完了したら、 Source#gather_candidates
内で False
に設定する。
targets
選択された候補の一覧
Candidate
.word
(required)
候補一覧に表示される名称
.action__command
Filter
matcher/fuzzy
デフォルトで利用されるフィルタ
曖昧検索用
SourceのFilterを変更する
vimcall denite#custom#source('<source-name>', 'matchers', ['<filter1>', '<filter2>', ...])
built-in sources
file/rec
vimcall denite#custom#var('file/rec', 'command', ['ag', '--follow', '--nocolor', '--nogroup', '-g', ''])
menu
third-party sources
参考