/ddu-source-rg

Primary LanguageTypeScriptMIT LicenseMIT

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

Configuration

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.

call ddu#custom#patch_global({
    \   'sourceParams' : {
    \     'rg' : {
    \       'args': ['--json'],
    \     },
    \   },
    \ })

Author

KUDO Shunsuke (skudo_xx)