aboutsummaryrefslogtreecommitdiff
path: root/plugin/40-completion.lua
blob: 597a426f920fc8eca54941f6feab6192e859f5d5 (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
vim.pack.add({
  {
    src = "https://github.com/saghen/blink.compat",
    version = vim.version.range("2.x"),
  },
  {
    src = "https://github.com/saghen/blink.cmp",
    version = vim.version.range("1.x"),
  },
})

require("blink.compat").setup({})

require("blink.cmp").setup({
  keymap = { preset = "default" },
  appearance = {
    nerd_font_variant = "normal",
  },
  completion = {
    documentation = {
      auto_show = true,
      auto_show_delay_ms = 150,
    },
  },
  sources = {
    default = { "lsp", "path", "vimtex", "buffer" },
    providers = {
      vimtex = {
        name = "vimtex",
        module = "blink.compat.source",
      },
    },
  },
  cmdline = { enabled = false },
  signature = { enabled = true },
})