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 = {