lukas-reineke/cmp-rg

ripgrep source for nvim-cmp

Lua

313

66 commits

updated Nov 12, 2024

See the code

README

cmp-rg

ripgrep source for nvim-cmp

Dependencies

You need to have ripgrep installed.

Install

Use your favourite plugin manager to install.

Example with Packer

wbthomason/packer.nvim

-- init.lua
require("packer").startup(function()
    use "lukas-reineke/cmp-rg"
end)

Example with Plug

junegunn/vim-plug

" init.vim
call plug#begin('~/.vim/plugged')
Plug 'lukas-reineke/cmp-rg'
call plug#end()

Setup

Add rg to your cmp sources

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

Screenshot
neovim
neovim-plugin
nvim-cmp
ripgrep
vim
vim-plugin

Contributors

lukas-reineke

54 commits

shiradofu

2 commits

DanSM-5

2 commits

unc0

2 commits

lukas-reineke/cmp-rg

ripgrep source for nvim-cmp

Lua

313

66 commits

updated Nov 12, 2024

See the code

README

cmp-rg

ripgrep source for nvim-cmp

Dependencies

You need to have ripgrep installed.

Install

Use your favourite plugin manager to install.

Example with Packer

wbthomason/packer.nvim

-- init.lua
require("packer").startup(function()
    use "lukas-reineke/cmp-rg"
end)

Example with Plug

junegunn/vim-plug

" init.vim
call plug#begin('~/.vim/plugged')
Plug 'lukas-reineke/cmp-rg'
call plug#end()

Setup

Add rg to your cmp sources

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

Screenshot
neovim
neovim-plugin
nvim-cmp
ripgrep
vim
vim-plugin

Contributors

lukas-reineke

54 commits

shiradofu

2 commits

DanSM-5

2 commits

unc0

2 commits

Languages

Lua

100.0%