Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukas-reineke/cmp-rg
ripgrep source for nvim-cmp
https://github.com/lukas-reineke/cmp-rg
neovim neovim-plugin nvim-cmp ripgrep vim vim-plugin
Last synced: about 14 hours ago
JSON representation
ripgrep source for nvim-cmp
- Host: GitHub
- URL: https://github.com/lukas-reineke/cmp-rg
- Owner: lukas-reineke
- License: mit
- Created: 2021-10-26T07:41:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T02:45:01.000Z (3 months ago)
- Last Synced: 2025-01-19T20:04:54.434Z (8 days ago)
- Topics: neovim, neovim-plugin, nvim-cmp, ripgrep, vim, vim-plugin
- Language: Lua
- Homepage:
- Size: 40 KB
- Stars: 311
- Watchers: 5
- Forks: 17
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# cmp-rg
[ripgrep](https://github.com/BurntSushi/ripgrep) source for [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
## Dependencies
You need to have [ripgrep](https://github.com/BurntSushi/ripgrep) installed.
## Install
Use your favourite plugin manager to install.
#### Example with Packer
[wbthomason/packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
-- init.lua
require("packer").startup(function()
use "lukas-reineke/cmp-rg"
end)
```#### Example with Plug
[junegunn/vim-plug](https://github.com/junegunn/vim-plug)
```vim
" init.vim
call plug#begin('~/.vim/plugged')
Plug 'lukas-reineke/cmp-rg'
call plug#end()
```## Setup
Add `rg` to your cmp sources
```lua
require("cmp").setup {
sources = {
{
name = "rg",
-- Try it when you feel cmp performance is poor
-- keyword_length = 3
},
},
}
```For more options see `:help cmp-rg`
## Screenshot