From 1d7726b493edae02652a9143687bd2bd697b7235 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 6 Jul 2022 15:08:01 +0100 Subject: Missing file --- cmp.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmp.lua diff --git a/cmp.lua b/cmp.lua new file mode 100644 index 0000000..1e96706 --- /dev/null +++ b/cmp.lua @@ -0,0 +1,17 @@ +-- Setup nvim-cmp. +local cmp = require'cmp' + +cmp.setup({ + snippet = { + expand = function(args) + vim.fn["vsnip#anonymous"](args.body) + end, + }, + mapping = cmp.mapping.preset.insert({ + [''] = cmp.mapping.confirm({ select = true }), + }), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + { name = 'vsnip' }, + }) +}) -- cgit v1.2.3