ripgrep completion

This commit is contained in:
Noah Masur 2021-11-13 16:50:28 -05:00
parent 5f794c626b
commit 3a244110eb

View File

@ -182,6 +182,7 @@ require('packer').startup(function(use)
use 'hrsh7th/cmp-cmdline' --- Command line completion
use 'hrsh7th/cmp-nvim-lua' --- Nvim lua api completion
use 'saadparwaiz1/cmp_luasnip' --- Luasnip completion
use 'lukas-reineke/cmp-rg' --- Ripgrep completion
-- Completion engine
use {
@ -217,7 +218,11 @@ require('packer').startup(function(use)
{ name = 'nvim_lsp' },
{ name = 'path' },
{ name = 'luasnip' },
{ name = 'buffer', keyword_length = 5, max_item_count = 10 },
{ name = 'buffer', keyword_length = 3, max_item_count = 10 },
{
name = 'rg', keyword_length = 6, max_item_count = 10,
opts = { additional_arguments = "--ignore-case" }
},
},
experimental = {
native_menu = false, --- Use cmp menu instead of Vim menu