aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/completition.lua
blob: ab653176d975343cae0bb6c8c78480e3ce998a33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
return {
  "hrsh7th/nvim-cmp",
  dependencies = {
    "hrsh7th/cmp-buffer",
    "hrsh7th/cmp-path",
    "hrsh7th/cmp-nvim-lua",
    "hrsh7th/cmp-nvim-lsp",
    "hrsh7th/cmp-cmdline",
    "hrsh7th/cmp-git",
    "saadparwaiz1/cmp_luasnip",
    "onsails/lspkind-nvim",
    { "L3MON4D3/LuaSnip", version = "v1.*" },
    "windwp/nvim-autopairs",
    {
      "zbirenbaum/copilot-cmp",
      dependencies = {
        "zbirenbaum/copilot.lua",
        cmd = { "Copilot" },
        event = { "VeryLazy" },
        opts = {
          suggestion = { enabled = false },
          panel = { enabled = false },
        },
      },
      config = true,
    },
    {
      "uga-rosa/cmp-dictionary",
      config = function()
        local dict_fl = {
          ["*"] = { "/usr/share/dict/words" },
          ft = {
            foo = { "./../../spell/dict_es.dict" },
          },
        }
        local dict = require("cmp_dictionary")

        dict.setup({
          -- The following are default values.

	        paths = dict_fl["*"],
          exact_length = 2,
          first_case_insensitive = false,
          -- document = {
          --   enable = true,
          --   command = { "wn", "${label}", "-over" },
          -- },
        })

        -- dict.switcher({
        --   spelllang = {
        --     es = "./../../spell/dic_es.dict",
        --   },
        -- })
      end,
    },

  },
  event = "VeryLazy",
  config = function()
    require "pi.completition"
  end,
}