All Projects → f3fora → cmp-spell

f3fora / cmp-spell

Licence: other
spell source for nvim-cmp based on vim's spellsuggest.

Programming Languages

lua
6591 projects

Labels

Projects that are alternatives of or similar to cmp-spell

cmp luasnip
luasnip completion source for nvim-cmp
Stars: ✭ 290 (+192.93%)
Mutual labels:  nvim-cmp
nvim-cmp
A completion plugin for neovim coded in Lua.
Stars: ✭ 4,534 (+4479.8%)
Mutual labels:  nvim-cmp
cmp-emoji
nvim-cmp source for emoji
Stars: ✭ 99 (+0%)
Mutual labels:  nvim-cmp
cmp-latex-symbols
Add latex symbol support for nvim-cmp.
Stars: ✭ 82 (-17.17%)
Mutual labels:  nvim-cmp
nvim
Structure, documented, super fast neovim configuration. 可能是翻斗花园最好用的 neovim 配置[^1]。
Stars: ✭ 223 (+125.25%)
Mutual labels:  nvim-cmp
cmp-tmux
Tmux completion source for nvim-cmp and nvim-compe
Stars: ✭ 98 (-1.01%)
Mutual labels:  nvim-cmp
nvim-fennel-lsp-conjure-as-clojure-ide
Basic config to transform your NVIM in a powerful Clojure IDE using fennel, clojure-lsp and conjure.
Stars: ✭ 144 (+45.45%)
Mutual labels:  nvim-cmp
cmp-vsnip
nvim-cmp source for vim-vsnip
Stars: ✭ 70 (-29.29%)
Mutual labels:  nvim-cmp
cmp-dictionary
nvim-cmp source for dictionary.
Stars: ✭ 60 (-39.39%)
Mutual labels:  nvim-cmp
cmp-under-comparator
nvim-cmp comparator function for completion items that start with one or more underlines
Stars: ✭ 77 (-22.22%)
Mutual labels:  nvim-cmp
cmp-treesitter
cmp source for treesitter
Stars: ✭ 69 (-30.3%)
Mutual labels:  nvim-cmp
cmp-path
nvim-cmp source for path
Stars: ✭ 137 (+38.38%)
Mutual labels:  nvim-cmp
cmp-skkeleton
skkeleton source for nvim-cmp
Stars: ✭ 12 (-87.88%)
Mutual labels:  nvim-cmp
cmp-nvim-ultisnips
nvim-cmp source for ultisnips
Stars: ✭ 61 (-38.38%)
Mutual labels:  nvim-cmp
cmp-nvim-lsp-document-symbol
nvim-cmp source for textDocument/documentSymbol via nvim-lsp.
Stars: ✭ 88 (-11.11%)
Mutual labels:  nvim-cmp
cmp-rg
ripgrep source for nvim-cmp
Stars: ✭ 165 (+66.67%)
Mutual labels:  nvim-cmp
crates.nvim
A neovim plugin that helps managing crates.io dependencies
Stars: ✭ 252 (+154.55%)
Mutual labels:  nvim-cmp

cmp-spell

spell source for nvim-cmp based on vim's spellsuggest.

Setup

require('cmp').setup({
    sources = {
        {
            name = 'spell',
            option = {
                keep_all_entries = false,
                enable_in_context = function()
                    return true
                end,
            },
        },
    },
})

Setting spell (and spelllang) is mandatory to use spellsuggest.

vim.opt.spell = true
vim.opt.spelllang = { 'en_us' }

Options

keep_all_entries

If true, all vim.fn.spellsuggest results are displayed in nvim-cmp menu. Otherwise, they are being filtered to only include fuzzy matches.

Type: boolean
Default: false

enable_in_context

'nvim-cmp' menu is populated only when the function returns true.

For example, one can enable this source only when in a @spell treesitter capture. See :help treesitter-highlight-spell.

enable_in_context = function()
    return require('cmp.config.context').in_treesitter_capture('spell')
end,

Type: function
Return: boolean
Default:

enable_in_context = function()
    return true
end,

Note: this option will be removed when hrsh7th/nvim-cmp#632 is implemented.

Credit

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].