Code Monkey home page Code Monkey logo

nvim-rg's Introduction

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.

nvim-rg's People

Contributors

duane9 avatar codogeno avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.