mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
12 lines
429 B
Lua
12 lines
429 B
Lua
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()
|