mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: added opts.headless
to control ansi output when running headless
This commit is contained in:
parent
93b3a77286
commit
a0a51c06c2
5 changed files with 153 additions and 10 deletions
|
@ -6,22 +6,22 @@ for _, name in ipairs({ "config", "data", "state", "cache" }) do
|
|||
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
|
||||
end
|
||||
|
||||
-- -- Bootstrap lazy.nvim
|
||||
-- local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
-- if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
-- local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
-- vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
-- end
|
||||
-- vim.opt.rtp:prepend(lazypath)
|
||||
vim.opt.rtp:prepend(".")
|
||||
|
||||
vim.o.loadplugins = true -- enable since nvim -l disables plugins
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
"lunarmodules/busted", -- add busted
|
||||
spec = {
|
||||
"lunarmodules/busted", -- add busted
|
||||
},
|
||||
rocks = { hererocks = true },
|
||||
})
|
||||
|
||||
local Config = require("lazy.core.config")
|
||||
-- disable termnial output for the tests
|
||||
Config.options.headless = {}
|
||||
|
||||
-- run busted
|
||||
return pcall(require("busted.runner"), {
|
||||
standalone = false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue