Custom list source for ddu.vim
This souce allows you to specify custom text list as a ddu source programatically.
call ddu#custom#patch_global({
\ 'kindOptions': {
\ 'custom-list': {
\ 'defaultAction': 'callback',
\ },
\ }
\ })
let id = denops#callback#register(
\ {s -> execute(printf('echom "%s"', s), '')},
\ {'once': v:true})
call ddu#start({'sources': [
\ {'name': 'custom-list',
\ 'params': {'texts': ['hello', 'world'], 'callbackId': id}}]})
Copyright (c) 2022 Masashi Iizuka
Distributed under the MIT License.