local cmp = require('cmp') cmp.setup{ sources = { { name = 'nvim_lsp' }, { name = 'path' }, { name = 'buffer', option = { keyword_length = 3 }, }, }, mapping = { [''] = cmp.mapping.confirm({}), [''] = function(fallback) if cmp.visible() then cmp.select_next_item() else fallback() end end, [''] = function(fallback) if cmp.visible() then cmp.select_prev_item() else fallback() end end, }, }