local cmp = require('cmp') local cmp_select = {behavior = cmp.SelectBehavior.Select} local luasnip= require('luasnip') require("luasnip.loaders.from_vscode").lazy_load() -- cmp.setup({ snippet = { expand = function(args) luasnip.lsp_expand(args.body) end }, sources = { {name = 'path'}, {name = 'nvim_lsp'}, {name = 'nvim_lua'}, {name = 'luasnip'}, }, mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.select_prev_item(cmp_select), [''] = cmp.mapping.select_next_item(cmp_select), [''] = cmp.mapping.confirm({ select = true }), [''] = cmp.mapping.complete(), }), })