From b2fb765967e2b8010683c62497260f6ff43cf15a Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Mon, 21 Feb 2022 09:22:13 +0100 Subject: [PATCH] chore: uncomment cmp configuration --- nvim/plugin-config/cmp.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nvim/plugin-config/cmp.lua b/nvim/plugin-config/cmp.lua index 8763990..1c2b5ad 100644 --- a/nvim/plugin-config/cmp.lua +++ b/nvim/plugin-config/cmp.lua @@ -6,11 +6,11 @@ if (not status) then return end cmp.setup({ auto_select = false, - -- snippet = { - -- expand = function(args) - -- vim.fn["UltiSnips#Anon"](args.body) - -- end - -- }, + snippet = { + expand = function(args) + vim.fn["UltiSnips#Anon"](args.body) + end + }, mapping = { [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), @@ -29,9 +29,9 @@ cmp.setup({ sources = { { name = 'nvim_lsp' }, { name = 'path' }, - -- { name = 'ultisnips' }, - { name = 'buffer', keyword_length = 5 }, + { name = 'buffer', keyword_length = 3 }, { name = 'npm', keyword_length = 4 }, + { name = 'ultisnips' }, }, formatting = { format = require('lspkind').cmp_format {