Home

Awesome

ddu-source-anyjump

Source for non-LSP oriented definition|reference list.

Based on https://github.com/pechorin/any-jump.vim.

Contents

Installation

Use your favorite plugin manager or other.

Dependencies

ddu.vim and denops.vim are required.

Need to set rg in your PATH.

Examples

Configuration:

call ddu#custom#patch_global(#{
    \   sourceParams: #{
    \     anyjump_definition: #{
    \       highlights: #{
    \         path: 'Normal',
    \         lineNr: 'Normal',
    \         word: 'Search',
    \       },
    \       removeCommentsFromResults: v:true,
    \     },
    \   },
    \   sourceParams: #{
    \     anyjump_reference: #{
    \       highlights: #{
    \         path: 'Normal',
    \         lineNr: 'Normal',
    \         word: 'Search',
    \       },
    \       removeCommentsFromResults: v:true,
    \       onlyCurrentFiletype: v:false,
    \     },
    \   },
    \ })

How to use:

call ddu#start(#{
    \ ui: 'ff',
    \ sources: [#{
    \   name: 'anyjump_definition',
    \ }]
    \ })

call ddu#start(#{
    \ ui: 'ff',
    \ sources: [#{
    \   name: 'anyjump_reference',
    \ }]
    \ })

Params

anyjump_definition

Highlight groups for path, lineNr and search word.

Default: "Normal" for path and lineNr. Default: "Search" for word.

Remove comments line from search results.

Default: true

anyjump_reference

see ddu-source-anyjump_definition-param-highlights.

see ddu-source-anyjump_definition-param-removeCommentsFromResults.

Search references only for current file type.

Default: false