Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duane9/nvim-rg
Run ripgrep from Neovim asynchronously.
https://github.com/duane9/nvim-rg
grep neovim neovim-plugin nvim nvim-plugin ripgrep vim vim-plugin
Last synced: about 2 months ago
JSON representation
Run ripgrep from Neovim asynchronously.
- Host: GitHub
- URL: https://github.com/duane9/nvim-rg
- Owner: duane9
- License: mit
- Created: 2021-05-24T23:15:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T19:11:18.000Z (9 months ago)
- Last Synced: 2024-07-31T20:44:41.863Z (4 months ago)
- Topics: grep, neovim, neovim-plugin, nvim, nvim-plugin, ripgrep, vim, vim-plugin
- Language: Vim Script
- Homepage:
- Size: 21.5 KB
- Stars: 36
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim - duane9/nvim-rg - Run RipGrep asynchronously and see results in a quickfix window. (Search / PHP)
README
# 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.## 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
file type.:Rg
Or
rg
To search for the word under the cursor use:
rw
## Installation
Install ripgrep:
brew install ripgrep
Install this plugin using [vim-plug](https://github.com/junegunn/vim-plug) (or
your favorite plugin manager):```vim
Plug 'duane9/nvim-rg'
```## Configuration
Specify a custom base command. By default, `rg_command` is set to `rg --vimgrep`:
```vim
let g:rg_command = 'rg --vimgrep'
```## Docs
See `:help nvim-rg`.