{"id":13678419,"url":"https://github.com/f3fora/cmp-spell","last_synced_at":"2025-10-03T15:20:48.251Z","repository":{"id":46141629,"uuid":"399968656","full_name":"f3fora/cmp-spell","owner":"f3fora","description":"spell source for nvim-cmp based on vim's spellsuggest.","archived":false,"fork":false,"pushed_at":"2024-05-07T12:29:03.000Z","size":8,"stargazers_count":203,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-30T15:23:59.507Z","etag":null,"topics":["nvim-cmp"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f3fora.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-25T22:07:07.000Z","updated_at":"2025-04-07T13:39:21.000Z","dependencies_parsed_at":"2024-08-02T13:29:17.190Z","dependency_job_id":null,"html_url":"https://github.com/f3fora/cmp-spell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fora%2Fcmp-spell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fora%2Fcmp-spell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fora%2Fcmp-spell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f3fora%2Fcmp-spell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f3fora","download_url":"https://codeload.github.com/f3fora/cmp-spell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251730026,"owners_count":21634315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nvim-cmp"],"created_at":"2024-08-02T13:00:53.377Z","updated_at":"2025-10-03T15:20:48.189Z","avatar_url":"https://github.com/f3fora.png","language":"Lua","readme":"# cmp-spell\n\n`spell` source for [`nvim-cmp`](https://github.com/hrsh7th/nvim-cmp) based on vim's `spellsuggest`.\n\n## Setup\n\n```lua\nrequire(\"cmp\").setup({\n    sources = {\n        {\n            name = \"spell\",\n            option = {\n                keep_all_entries = false,\n                enable_in_context = function()\n                    return true\n                end,\n                preselect_correct_word = true,\n            },\n        },\n    },\n})\n```\n\nSetting `spell` (and `spelllang`) is mandatory to use `spellsuggest`.\n\n```lua\nvim.opt.spell = true\nvim.opt.spelllang = { \"en_us\" }\n```\n\n## Options\n\n### `keep_all_entries`\n\nIf true, all `vim.fn.spellsuggest` results are displayed in `nvim-cmp` menu. Otherwise, they are being filtered to only include fuzzy matches.\n\nType: boolean  \nDefault: `false`\n\n### `enable_in_context`\n\n'nvim-cmp' menu is populated only when the function returns true.\n\nFor example, one can enable this source only when in a `@spell` treesitter capture. See `:help treesitter-highlight-spell`.\n\n```lua\nenable_in_context = function(params)\n    return require('cmp.config.context').in_treesitter_capture('spell')\nend,\n```\n\nType: function  \nReturn: boolean  \nDefault:\n\n```lua\nenable_in_context = function(params)\n    return true\nend,\n```\n\nNote: this option will be removed when hrsh7th/nvim-cmp#632 is implemented.\n\n### `preselect_correct_word`\n\nIf true and the spelling of a word is correct, the word is displayed as the first entry and preselected. \n\nType: boolean  \nDefault: `true`\n\n## Credit\n\n- [compe-spell](https://github.com/hrsh7th/nvim-compe/blob/master/lua/compe_spell/init.lua)\n- [nvim-cmp request](https://github.com/hrsh7th/nvim-cmp/issues/69)\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3fora%2Fcmp-spell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff3fora%2Fcmp-spell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff3fora%2Fcmp-spell/lists"}