return { "hrsh7th/nvim-cmp", dependencies = { "hrsh7th/cmp-path", "hrsh7th/cmp-buffer", "ray-x/cmp-treesitter", }, config = function() local cmp = require("cmp") cmp.setup { sources = { { name = "path" }, { name = "buffer" }, { name = "treesitter" }, }, 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 }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. [''] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. }, } end }