From a5c9629347fe7095b798723c751432a4c644d62e Mon Sep 17 00:00:00 2001 From: zoomiti Date: Thu, 18 Aug 2022 02:55:55 -0400 Subject: [PATCH] Deleted comments for cmp setup --- .config/nvim/init.vim | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index ebb500c..0280703 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -325,10 +325,7 @@ if has("nvim") cmp.setup({ snippet = { expand = function(args) - -- vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. - -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users. - vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users. - -- require'snippy'.expand_snippet(args.body) -- For `snippy` users. + vim.fn["UltiSnips#Anon"](args.body) end, }, mapping = { @@ -340,8 +337,6 @@ if has("nvim") [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() - -- elseif luasnip.expand_or_jumpable() then - -- luasnip.expand_or_jump() else fallback() end @@ -349,8 +344,6 @@ if has("nvim") [''] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() - -- elseif luasnip.jumpable(-1) then - -- luasnip.jump(-1) else fallback() end @@ -359,10 +352,7 @@ if has("nvim") sources = cmp.config.sources({ { name = 'nvim_lsp' }, { name = 'nvim_lua' }, - -- { name = 'vsnip' }, -- For vsnip users. - -- { name = 'luasnip' }, -- For luasnip users. - { name = 'ultisnips' }, -- For ultisnips users. - -- { name = 'snippy' }, -- For snippy users. + { name = 'ultisnips' }, { name = 'path' }, }, { { name = 'buffer', keyword_length = 5},