return { "hrsh7th/nvim-cmp", dependencies = { "neovim/nvim-lspconfig", "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip", }, config = function() local cmp = require("cmp") cmp.setup({ snippit = { expand = function(args) require('luasnip').lsp_expand(args.body) end }, window = { }, mapping = cmp.mapping.preset.insert({ [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.abort(), [''] = cmp.mapping.confirm({select=true}), }), sources = cmp.config.sources({ {name = "nvim_lsp"} }, { {name = "buffer"} }) }) end }