Skip to content

Source for non-LSP oriented definition|reference list.

Notifications You must be signed in to change notification settings

arrow2nd/ddu-source-anyjump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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_definition: #{
    \       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

  • highlights

Highlight groups for path, lineNr and search word.

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

  • removeCommentsFromResults

Remove comments line from search results.

Default: true

anyjump_reference

  • highlights

see ddu-source-anyjump_definition-param-highlights.

  • removeCommentsFromResults

see ddu-source-anyjump_definition-param-removeCommentsFromResults.

  • onlyCurrentFiletype

Search references only for current file type.

Default: false

About

Source for non-LSP oriented definition|reference list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%