summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/completion.lua
blob: 0c6d2854fc96a15368fa1bd1ba3668cb94395a6b (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
return {
  {
    -- when in doubt, this plugin is the cause of cpu issues.
    "blink.cmp",
    -- enabled = false,
    lazy = true,
    event = {
      "InsertEnter",
      "CmdlineEnter",
    },
    after = function()
      -- require("luasnip.loaders.from_vscode").lazy_load()
      -- vim.cmd.packadd("luasnip")
      -- vim.cmd.packadd("friendly-snippets")

      require("blink.cmp").setup {
        -- snippets = { preset = 'luasnip' },
        sources = {
          default = { 'lsp', 'path', 'snippets', 'buffer' },
        },
      }

    end,
  },
}