-- Archivo: lua/plugins/nvim-cmp.lua return { { "hrsh7th/nvim-cmp", config = function() local cmp = require("cmp") cmp.setup({ mapping = { [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() else fallback() end end, { "i", "s" }), [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() else fallback() end end, { "i", "s" }), [""] = cmp.mapping.confirm({ select = true }), }, sources = cmp.config.sources({ { name = "copilot" }, { name = "nvim_lsp" }, { name = "buffer" }, -- AƱade otras fuentes si lo deseas }), }) end, }, }