• Stars
    star
    246
  • Rank 163,925 (Top 4 %)
  • Language
    Lua
  • License
    MIT License
  • Created about 3 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A dictionary completion source for nvim-cmp

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

Setting

require("cmp").setup({
  -- other settings
  sources = {
  -- other sources
    {
      name = "dictionary",
      keyword_length = 2,
    },
  }
})

local dict = require("cmp_dictionary")

dict.setup({
  -- The following are default values.
  exact = 2,
  first_case_insensitive = false,
  document = false,
  document_command = "wn %s -over",
  async = false,
  sqlite = false,
  max_items = -1,
  capacity = 5,
  debug = false,
})

dict.switcher({
  filetype = {
    lua = "/path/to/lua.dict",
    javascript = { "/path/to/js.dict", "/path/to/js2.dict" },
  },
  filepath = {
    [".*xmake.lua"] = { "/path/to/xmake.dict", "/path/to/lua.dict" },
    ["%.tmux.*%.conf"] = { "/path/to/js.dict", "/path/to/js2.dict" },
  },
  spelllang = {
    en = "/path/to/english.dict",
  },
})

See help for details.

Examples of usage

See wiki

More Repositories

1

ccc.nvim

Color picker and highlighter plugin for Neovim.
Lua
712
star
2

translate.nvim

Use any external translate command/API in nvim.
Lua
164
star
3

utf8.nvim

The missing utf8 module for neovim Lua.
Lua
77
star
4

scorpeon.vim

Syntax highlight using VSCode's textmate grammar as is.
TypeScript
72
star
5

cmp-dynamic

Source of nvim-cmp to dynamically generate candidates using Lua functions.
Lua
39
star
6

ugaterm.nvim

A terminal plugin for Neovim
Lua
33
star
7

jam.nvim

Japanese IME (not skk!) plugin for neovim.
Lua
32
star
8

denippet.vim

A snippet plugin for Vim/Neovim, powered by TypeScript
TypeScript
28
star
9

ddu-source-lsp

Ddu source for lsp.
TypeScript
19
star
10

dotfiles

My personal configs
Lua
18
star
11

ddc-previewer-floating

A previewer for ddc.vim in Neovim.
Lua
13
star
12

cmp-skkeleton

nvim-cmp source for skkeleton
Lua
10
star
13

ddc-source-lsp-setup

Lua
8
star
14

contextment.vim

A plugin for context-sensitive comment out.
Vim Script
8
star
15

ddc-source-vsnip

vim-vsnip source for ddc.vim
TypeScript
8
star
16

skk-learning.nvim

Learning skk implemention in Neovim, Lua.
Lua
8
star
17

coc-luasnip

TypeScript
7
star
18

filittle.nvim

A simple and fast file explorer written in Lua.
Lua
7
star
19

join.nvim

Simple join plugin for neovim.
Lua
6
star
20

ddu-filter-converter_devicon

Add devicon to files.
TypeScript
5
star
21

snip2json

Convert ultisnips syntax snippets to LSP format json.
TypeScript
4
star
22

nvim-lsp-setup

To batch configurations that are distributed in lsp.handlers and vim.diagnostic.config().
Lua
4
star
23

steelarray.nvim

Useful functions for array like table
Lua
4
star
24

lua-utils.nvim

Library for neovim Lua
Lua
4
star
25

shellopt.nim

Nim
4
star
26

ddc-source-nvim-lua

Neovim Lua source for ddc.vim.
TypeScript
3
star
27

linkformat.vim

A link formatter for any plugin manager
Vim Script
3
star
28

nim-example.nvim

Use Nim from neovim Lua
Lua
3
star
29

deepl.nvim

Hit deepl api from neovim and display in floating window
Lua
3
star
30

sticky-header.nvim

Lua
2
star
31

cmp-denippet

nvim-cmp source for denippet.vim
Lua
2
star
32

eiwa_dic.nvim

neovimのフローティングウィンドウを使った英和辞書
Lua
2
star
33

ddc-source-dictionary

Dictionary source for ddc.vim
TypeScript
2
star
34

deno-mock-jr

Mock server based on JSON-RPC
TypeScript
2
star
35

estrela.lua

Extend lua syntax powered by metatable.
Lua
2
star
36

todo.nvim

Lua
1
star
37

neovim-plugin-template

Template for a neovim plugin
Vim Script
1
star
38

ok-colorspace.lua

Lua implementation of Oklab/Okhsv/Okhsl.
Lua
1
star
39

njo

jo written in Nim
Nim
1
star
40

cmp-latex-symbol

Source of nvim-cmp for latex symbol.
Lua
1
star
41

cache.nvim

lru and lfu
1
star
42

deno-denops-lsputil

TypeScript
1
star
43

ugamacs

A set of codes used to analyze a gromacs simulation.
Lua
1
star