https://github.com/shun/ddu-source-rg
https://github.com/shun/ddu-source-rg
ddu-source ddu-vim
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shun/ddu-source-rg
- Owner: shun
- License: mit
- Created: 2022-01-21T15:58:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-30T02:37:04.000Z (6 months ago)
- Last Synced: 2025-12-02T07:29:49.700Z (6 months ago)
- Topics: ddu-source, ddu-vim
- Language: TypeScript
- Homepage:
- Size: 61.5 KB
- Stars: 34
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddu-source-rg
ripgrep source for ddu.vim.
## Required
### denops.vim
https://github.com/vim-denops/denops.vim
### ddu.vim
https://github.com/Shougo/ddu.vim
### ripgrep
https://github.com/BurntSushi/ripgrep
### kensaku.vim (Optional)
Required if you want to use [Migemo][Migemo].
https://github.com/lambdalisue/kensaku.vim
## Configuration
```vim
call ddu#custom#patch_global(#{
\ sourceParams : #{
\ rg : #{
\ args: ['--column', '--no-heading', '--color', 'never'],
\ },
\ },
\ })
```
if you want to highlight the search word, should be set "--json".
e.g.
```vim
call ddu#custom#patch_global(#{
\ sourceParams: #{
\ rg: #{
\ args: ['--json'],
\ },
\ },
\ })
```
if you want to use [Migemo][Migemo] as input pattern, should be set "migemo" to
`inputType`.
e.g.
```vim
call ddu#custom#patch_global(#{
\ sourceParams: #{
\ rg: #{
\ inputType: 'migemo',
\ },
\ },
\ })
```
[Migemo]: http://0xcc.net/migemo/
## Author
KUDO Shunsuke (skudo_xx)