cmp-rg
ripgrep source for nvim-cmp
Lua★ 311⑂ 18 forksMITupdated 1 year ago
git clone https://github.com/lukas-reineke/cmp-rg.gitlukas-reineke/cmp-rgREADME.mdfork it — it’s yours
cmp-rg
Dependencies
You need to have ripgrep installed.
Install
Use your favourite plugin manager to install.
Example with Packer
-- init.lua
require("packer").startup(function()
use "lukas-reineke/cmp-rg"
end)
Example with 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
more like this
