aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/completition.lua
blob: 480da46ca80cddbb1179b5f729b87a40ef2761f6 (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
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({ paths = dict_fl["*"], exact_length = 3, first_case_insensitive = false })
      end,
    },

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