mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
ci: update test scripts
This commit is contained in:
parent
b9d38f6920
commit
c220e04cd6
4 changed files with 28 additions and 24 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
nvim -l tests/minit.lua --minitest
|
nvim -l tests/minit.lua --minitest "$@"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,13 @@
|
||||||
#!/usr/bin/env -S nvim -l
|
#!/usr/bin/env -S nvim -l
|
||||||
|
|
||||||
vim.env.LAZY_STDPATH = ".tests"
|
vim.env.LAZY_STDPATH = ".tests"
|
||||||
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
|
vim.env.LAZY_PATH = vim.fs.normalize("~/projects/lazy.nvim")
|
||||||
|
|
||||||
|
if vim.fn.isdirectory(vim.env.LAZY_PATH) then
|
||||||
|
loadfile(vim.env.LAZY_PATH .. "/bootstrap.lua")()
|
||||||
|
else
|
||||||
|
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"), "bootstrap.lua")()
|
||||||
|
end
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
-- Setup lazy.nvim
|
||||||
require("lazy.minit").setup({
|
require("lazy.minit").setup({
|
||||||
|
|
|
||||||
21
vim.toml
21
vim.toml
|
|
@ -1,21 +0,0 @@
|
||||||
[selene]
|
|
||||||
base = "lua51"
|
|
||||||
name = "vim"
|
|
||||||
|
|
||||||
[vim]
|
|
||||||
any = true
|
|
||||||
|
|
||||||
[jit]
|
|
||||||
any = true
|
|
||||||
|
|
||||||
[assert]
|
|
||||||
any = true
|
|
||||||
|
|
||||||
[describe]
|
|
||||||
any = true
|
|
||||||
|
|
||||||
[it]
|
|
||||||
any = true
|
|
||||||
|
|
||||||
[before_each.args]
|
|
||||||
any = true
|
|
||||||
19
vim.yml
Normal file
19
vim.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
base: lua51
|
||||||
|
lua_versions:
|
||||||
|
- luajit
|
||||||
|
|
||||||
|
globals:
|
||||||
|
Snacks:
|
||||||
|
any: true
|
||||||
|
vim:
|
||||||
|
any: true
|
||||||
|
jit:
|
||||||
|
any: true
|
||||||
|
assert:
|
||||||
|
any: true
|
||||||
|
describe:
|
||||||
|
any: true
|
||||||
|
it:
|
||||||
|
any: true
|
||||||
|
before_each:
|
||||||
|
any: true
|
||||||
Loading…
Add table
Reference in a new issue