From 3a244110eb0a5aaeeed2a020afec8966176fe68c Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 13 Nov 2021 16:50:28 -0500 Subject: [PATCH] ripgrep completion --- nvim.configlink/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim.configlink/init.lua b/nvim.configlink/init.lua index 3aa53d4..5bb1418 100644 --- a/nvim.configlink/init.lua +++ b/nvim.configlink/init.lua @@ -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