An open API service indexing awesome lists of open source software.

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

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)