From 53a9a07bf6b883e4b025362e38c34f856b77dc02 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 2 Mar 2024 18:21:53 +0000 Subject: [PATCH] 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. --- site-modules/core/files/vim/plugin/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/lsp.lua b/site-modules/core/files/vim/plugin/lsp.lua index 6707dcc..2fa4cc6 100644 --- a/site-modules/core/files/vim/plugin/lsp.lua +++ b/site-modules/core/files/vim/plugin/lsp.lua @@ -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,