From a941c6930eea9c3e3bfc53d80b403579c28bb673 Mon Sep 17 00:00:00 2001 From: robin Date: Sun, 14 Jun 2026 17:40:19 +0200 Subject: [PATCH] meta: lua env --- .luarc.json | 8 ++++++++ vim.toml | 55 ----------------------------------------------------- vim.yml | 21 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 55 deletions(-) create mode 100644 .luarc.json delete mode 100644 vim.toml create mode 100644 vim.yml diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..8b4f767 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,8 @@ +{ + "runtime.version": "LuaJIT", + "workspace.library": [ + "${3rd}/luv/library", + "$VIMRUNTIME/lua" + ], + "workspace.checkThirdParty": false +} diff --git a/vim.toml b/vim.toml deleted file mode 100644 index 77b3b7f..0000000 --- a/vim.toml +++ /dev/null @@ -1,55 +0,0 @@ -[selene] -base = "lua51" -name = "vim" - -[vim] -any = true - -[[describe.args]] -type = "string" -[[describe.args]] -type = "function" - -[[it.args]] -type = "string" -[[it.args]] -type = "function" - -[[before_each.args]] -type = "function" -[[after_each.args]] -type = "function" - -[assert.is_not] -any = true - -[assert.matches] -any = true - -[assert.has_error] -any = true - -[[assert.equals.args]] -type = "any" -[[assert.equals.args]] -type = "any" -[[assert.equals.args]] -type = "any" -required = false - -[[assert.same.args]] -type = "any" -[[assert.same.args]] -type = "any" - -[[assert.truthy.args]] -type = "any" - -[[assert.falsy.args]] -type = "any" - -[[assert.spy.args]] -type = "any" - -[[assert.stub.args]] -type = "any" diff --git a/vim.yml b/vim.yml new file mode 100644 index 0000000..716f729 --- /dev/null +++ b/vim.yml @@ -0,0 +1,21 @@ +name: "vim" +base: "lua51" + +globals: + vim: + any: true + + jit: + any: true + + assert: + any: true + + describe: + any: true + + it: + any: true + + before_each.args: + any: true -- 2.51.2