Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.dictionary

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.dictionary
import { op } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { dictionary } = op;

List of file names, separated by commas, that are used to lookup words for keyword completion commands i_CTRL-X_CTRL-K. Each file should contain a list of words. This can be one word per line, or several words per line, separated by non-keyword characters (white space is preferred). Maximum line length is 510 bytes.

When this option is empty or an entry "spell" is present, and spell checking is enabled, words in the word lists for the currently active 'spelllang' are used. See spell.

To include a comma in a file name precede it with a backslash. Spaces after a comma are ignored, otherwise spaces are included in the file name. See option-backslash about using backslashes. This has nothing to do with the Dictionary variable type. Where to find a list of words?

  • On FreeBSD, there is the file "/usr/share/dict/words".
  • In the Simtel archive, look in the "msdos/linguist" directory.
  • In "miscfiles" of the GNU collection. The use of :set+= and :set-= is preferred when adding or removing directories from the list. This avoids problems when a future version uses another default. Backticks cannot be used in this option for security reasons.

(default "")

type

GlobalOrLocalOption<string>