From d5d5ca6fa78ee008ca4a8ea7398f49b434650c3d Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Mon, 18 Sep 2023 08:01:47 +0200 Subject: [PATCH] fix: nvim_cmp config for copilot (wip) --- nvimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nvimrc b/nvimrc index 9bd828e..9e9e6bb 100644 --- a/nvimrc +++ b/nvimrc @@ -367,23 +367,23 @@ lua <'] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.close(), + ['C-y'] = cmp.mapping.confirm({ select = true, behaviour = cmp.ConfirmBehavior.Replace }), [''] = cmp.mapping.confirm({ select = true, behaviour = cmp.ConfirmBehavior.Replace }), - }, + }), sources = cmp.config.sources({ { name = 'copilot', keyword_length = 0 }, - { name = 'nvim_lsp' }, + { name = 'nvim_lsp', keyword_length = 3 }, { name = 'buffer', option = {