summaryrefslogtreecommitdiff
path: root/tests/minimal_init.lua
blob: 0178514bd517d43e68b8531929d8da0bf31ad52f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
local path_sep = vim.loop.os_uname().version:match "Windows" and "\\" or "/"
local base_dir = os.getenv "LUNARVIM_RUNTIME_DIR" .. path_sep .. "lvim"
local tests_dir = base_dir .. path_sep .. "tests"

vim.opt.rtp = { base_dir, tests_dir, os.getenv "VIMRUNTIME" }

vim.opt.swapfile = false

-- load helper functions before any other plugin to avoid name-collisions
pcall(require, "tests.helpers")

require("lvim.bootstrap"):init()