mirror of https://github.com/folke/lazy.nvim.git
ci: allow to run busted script with nvim -u to inspect env
This commit is contained in:
parent
cfdfb786b1
commit
f47ab692f1
|
@ -48,6 +48,9 @@ function M.busted(opts)
|
||||||
-- disable termnial output for the tests
|
-- disable termnial output for the tests
|
||||||
Config.options.headless = {}
|
Config.options.headless = {}
|
||||||
|
|
||||||
|
if not require("lazy.core.config").headless() then
|
||||||
|
return vim.notify("busted can only run in headless mode. Please run with `nvim -l`", vim.log.levels.WARN)
|
||||||
|
end
|
||||||
-- run busted
|
-- run busted
|
||||||
return pcall(require("busted.runner"), {
|
return pcall(require("busted.runner"), {
|
||||||
standalone = false,
|
standalone = false,
|
||||||
|
|
Loading…
Reference in New Issue