fix(vim): add busted globals to the lua diagnostics lsp

When writing tests with busted they use some other globals that you need
to tell you lsp about. I already have this for when I'm working on the
nvim config and configz.
This commit is contained in:
Ade Attwood 2024-03-02 18:21:53 +00:00
parent ff3b54d281
commit 53a9a07bf6

View file

@ -27,7 +27,7 @@ local servers = {
Lua = {
telemetry = { enable = false },
runtime = { version = "LuaJIT" },
diagnostics = { globals = { "vim", "configz" } },
diagnostics = { globals = { "vim", "configz", "describe", "it", "assert", "spy" } },
workspace = {
library = workspace_library,
checkThirdParty = false,