8000 GitHub - npc-z/cmp-dictionary: A dictionary completion source for nvim-cmp
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

npc-z/cmp-dictionary

 
 

Repository files navigation

cmp-dictionary

A dictionary completion source for nvim-cmp.

And added 8k+ common words by default.

This plugin provides one of the easiest way to add desired completion candidates to nvim-cmp.

image

Requirements

  • neovim >= 0.7
  • nvim-cmp
  • vim.system() or plenary.nvim (for some optional features).

Setting

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,
  first_case_insensitive = true,
  document = {
    enable = true,
    command = { "wn", "${label}", "-over" },
  },
})

See help for details.

About

A dictionary completion source for nvim-cmp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 99.6%
  • Makefile 0.4%
0