duane9/nvim-rg

github github
search plugin
star 0
stars
alert-circle 0
open issues
users 1
subscribers
git-branch 0
forks
CREATED

2021-05-24

UPDATED

5 months ago

packer

require('packer').startup(function()
  use 'duane9/nvim-rg'
end)

paq

require "paq" { 
  'duane9/nvim-rg'
}

nvim-rg

nvim-rg allows you to run ripgrep from Neovim or Vim and shows the results in a quickfix window.

It was developed for use on macOS with Neovim. On Neovim, it runs asynchronously. On Vim, it runs synchronously.

Usage

Search recursively in {directory} (which defaults to the current directory) for the {pattern}.

:Rg [options] {pattern} [{directory}]

When run without arguments, you will be prompted for a pattern, directory, and files pattern.

:Rg

Or

<leader>rg

To search for the word under the cursor use:

<leader>rw

Installation

This plugin requires ripgrep and works on macOS. Install ripgrep:

brew install ripgrep

Install this plugin using vim-plug (or your favorite package manager):

" Add this line to your vimrc
Plug 'duane9/nvim-rg'

Configuration

Specify a custom path in your vimrc (not required):

" Default is 'rg --vimgrep'
let g:rg_path = "<custom-rg-path-goes-here>"

License

Copyright (c) Duane Hilton. Distributed under the same terms as Vim/Neovim. See :help license.