# cmp-rg **Repository Path**: zsdfbb/cmp-rg ## Basic Information - **Project Name**: cmp-rg - **Description**: Mirror of https://github.com/lukas-reineke/cmp-rg - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-07-04 - **Last Updated**: 2023-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 Screenshot