Skip to content

Sologala/cmp-en-hint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏃cmp-en-hint

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

Motivation and alternative

👏 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.

Demo

Usage

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,
    },
}

Dict source

10K words google-10000-words 370K words word-alpha

About

A fast neovim cmp plugin about english words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages