cmp-en-hint
provides the English word completion functionality in Vim/Neovim.
The underlying working principle of cmp-en-hint
is binary searching current typing word in pre-provided sorted dictionary
๐ There is an open-source plugin available to supplement English word usage.cmp-look. However,it might not be compatible with Windows platforms due to its dependency on the "look" command from util-linux. Additionally, using pipe call for dictionary queries can be inefficient when dealing with large dictionary files. By loading and cacheing dictionary in memory with Lua and performing binary searches on sorted dictionaries, can achieve fast word completion.
For ๐คLazy.nvim
return {
{
"Sologala/cmp-en-hint"
},
{
'hrsh7th/nvim-cmp',
config = function()
local cmp = require('cmp')
cmp.setup({
sources = cmp.config.sources({
{ name = 'en_hint', }
})
})
end,
},
}
10K words google-10000-words 370K words word-alpha