https://github.com/omochice/ddu-source-anyjump
Source for non-LSP oriented definition|reference list for ddu.vim
https://github.com/omochice/ddu-source-anyjump
ddu-source ddu-vim
Last synced: 8 months ago
JSON representation
Source for non-LSP oriented definition|reference list for ddu.vim
- Host: GitHub
- URL: https://github.com/omochice/ddu-source-anyjump
- Owner: Omochice
- Created: 2023-07-15T12:15:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-01T14:49:41.000Z (12 months ago)
- Last Synced: 2025-07-01T15:47:22.535Z (12 months ago)
- Topics: ddu-source, ddu-vim
- Language: TypeScript
- Homepage:
- Size: 316 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ddu-source-anyjump
Source for non-LSP oriented definition|reference list.
Based on .
## Contents
- [ddu-source-anyjump-installation](ddu-source-anyjump-installation)
- [ddu-source-anyjump-dependencies](ddu-source-anyjump-dependencies)
- [ddu-source-anyjump-examples](ddu-source-anyjump-examples)
- [ddu-source-anyjump-params](ddu-source-anyjump-params)
## 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:
```vim
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:
```vim
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](ddu-source-anyjump_definition-param-highlights).
- `removeCommentsFromResults`
see
[ddu-source-anyjump_definition-param-removeCommentsFromResults](ddu-source-anyjump_definition-param-removeCommentsFromResults).
- `onlyCurrentFiletype`
Search references only for current file type.
Default: `false`