From 8a89bf0d4b8f905669237b5f34f73fd3e2c679f8 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 16 Aug 2024 14:53:36 +0200 Subject: [PATCH] Disable undefined globals and add config from SabineWren/wow-api-type-definitions --- .gitignore | 1 + .luarc.json | 19 ++++++++++++++++--- README.md | 3 +++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55695a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +wow-api-type-definitions diff --git a/.luarc.json b/.luarc.json index d226ba8..e97b3af 100644 --- a/.luarc.json +++ b/.luarc.json @@ -1,5 +1,18 @@ { - "diagnostics.disable": [ - "undefined-global" - ] + "diagnostics.globals": [ + "arg", + "arg1", + "arg2", + "arg3", + "arg4", + "arg5", + "arg6", + "arg7", + "arg8", + "arg9", + "event" + ], + "runtime.version": "Lua 5.1", + "type.inferParamType": true, + "workspace.library": ["wow-api-type-definitions"] } diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce949e1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Default keybinds + +See [wow-api-type-definitions](https://github.com/SabineWren/wow-api-type-definitions)