A filter for ddu.vim that use Vim's builtin matchfuzzy()
function
" Use matchfuzzy filter.
call ddu#custom#patch_global({
\ 'sourceOptions': {
\ '_': {
\ 'matchers': ['matcher_matchfuzzy'],
\ },
\ }
\ })
" Specify options
call ddu#custom#patch_global({
\ 'filterParams': {
\ 'matcher_matchfuzzy': {
\ 'highlightMatched': 'Search',
\ 'limit': 100,
\ 'matchseq': v:true,
\ },
\ }
\ })
See the help document for the detail.
MIT