return { { "hrsh7th/cmp-nvim-lsp", }, { "zbirenbaum/copilot-cmp", config = function() require("copilot_cmp").setup() end, }, { "hrsh7th/nvim-cmp", config = function() local cmp = require("cmp") cmp.setup({ window = { completion = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(), }, 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" }, }, { { name = "copilot" }, }), }) end, }, }