Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 769 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 769 Bytes

cmp-dictionary

A dictionary completion source for nvim-cmp.

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

image

Requirements

  • neovim >= 0.7
  • nvim-cmp

Optional

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

See help for details.