minimal_init.lua 429 B

123456789101112
  1. local path_sep = vim.loop.os_uname().version:match "Windows" and "\\" or "/"
  2. local base_dir = os.getenv "LUNARVIM_RUNTIME_DIR" .. path_sep .. "lvim"
  3. local tests_dir = base_dir .. path_sep .. "tests"
  4. vim.opt.rtp = { base_dir, tests_dir, os.getenv "VIMRUNTIME" }
  5. vim.opt.swapfile = false
  6. -- load helper functions before any other plugin to avoid name-collisions
  7. pcall(require, "tests.helpers")
  8. require("lvim.bootstrap"):init()