vim.env.LAZY_STDPATH = '~/.vim/.repro'
load(vim.fn.system('curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua'))()

---@diagnostic disable-next-line: missing-fields
require('lazy.minit').repro({
  spec = {
    {
      'saghen/blink.cmp',
      -- please test on `main` if possible
      -- otherwise, remove this line and set `version = '*'`
   -- build = 'cargo build --release',
      version = '*',
      opts = {
        completion = {
          menu = {
            draw = {
              columns = {
                { 'label', gap = 1 },
                { 'kind_icon', 'label_description', gap = 1 },
              },
              components = {
                label_description = {
                  text = function(ctx)
                    return ctx.label_description ~= '' and ctx.label_description or ctx.item.detail
                  end,
                },
              },
            },
          },
        },
      },
      opts_extend = { 'sources.default' },
    },
    {
      'mason-org/mason.nvim',
      build = ':MasonUpdate',
      opts = {},
    },
    {
      'mason-org/mason-lspconfig.nvim',
      dependencies = { 'mason-org/mason.nvim', 'neovim/nvim-lspconfig' },
      opts = {
        ensure_installed = {
          'hls',
        },
      },
    },
  },
})

vim.lsp.enable({
  'hls',
})