aboutsummaryrefslogtreecommitdiff
path: root/dot_config/herdr/plugins/github/herdr-splits-d880c4924f2b/scripts/minimal_init.lua
blob: 3fe8254ac9e3b167cd84e4c427d87f8af76e23ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local source = debug.getinfo(1, 'S').source
assert(source:sub(1, 1) == '@', 'could not locate minimal_init.lua')

local root = vim.fn.fnamemodify(source:sub(2), ':p:h:h')
vim.opt.runtimepath:prepend(root)
vim.opt.runtimepath:prepend(root .. '/deps/mini.test')

require('mini.test').setup({
  collect = {
    find_files = function()
      return vim.fn.glob(root .. '/tests/test_*.lua', true, true)
    end,
  },
})