https://github.com/uga-rosa/cmp-dictionary
A dictionary completion source for nvim-cmp
https://github.com/uga-rosa/cmp-dictionary
lua neovim-plugin nvim-cmp
Last synced: 12 days ago
JSON representation
A dictionary completion source for nvim-cmp
- Host: GitHub
- URL: https://github.com/uga-rosa/cmp-dictionary
- Owner: uga-rosa
- License: mit
- Created: 2021-09-26T08:01:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T12:16:22.000Z (23 days ago)
- Last Synced: 2025-03-31T05:05:34.039Z (19 days ago)
- Topics: lua, neovim-plugin, nvim-cmp
- Language: Lua
- Homepage:
- Size: 192 KB
- Stars: 272
- Watchers: 2
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-neovim-pluginlist - uga-rosa/cmp-dictionary - rosa/cmp-dictionary)   (Other Standard Feature Enhancement / Dictionary)
README
# cmp-dictionary
A dictionary completion source for [nvim-cmp](https://github.com/hrsh7th/nvim-cmp).
This plugin provides one of the easiest way to add desired completion candidates to nvim-cmp.

# Requirements
- neovim >= 0.7
- nvim-cmp## Optional
- `vim.system()` or [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) (for some optional features).
# Setting
```lua
require("cmp").setup({
-- other settings
sources = {
-- other sources
{
name = "dictionary",
keyword_length = 2,
},
}
})require("cmp_dictionary").setup({
paths = { "/usr/share/dict/words" },
exact_length = 2,
})
```See help for details.