custom column for ddu.vim
you can create custom column.
It is useful to create column related to the other ddu-plugin.
https://github.com/vim-denops/denops.vim
https://github.com/Shougo/ddu.vim
function s:hoge(args)
return #{ text: "unko" }
endfunction
call ddu#custom#patch_global(#{
\ columns: [
\ #{
\ name: "custom",
\ params: #{
\ getLengthCallbackId: denops#callback#register({ _ -> 4 }),
\ getTextCallbackId: denops#callback#register(function('s:hoge'))
\ }
\ }
\ ],
\ })