In your init.lua
:
local cmp = require'cmp'
require'cmp'.setup {
sources = {
{
name = 'eclim',
keyword_length = 3, -- only trigger completion after 3 characters,
-- otherwise there'll be many irrelevant items
},
...
},
...
}