diff --git a/lua/lazyvim/plugins/lsp/init.lua b/lua/lazyvim/plugins/lsp/init.lua index f0823e46..31ee360e 100644 --- a/lua/lazyvim/plugins/lsp/init.lua +++ b/lua/lazyvim/plugins/lsp/init.lua @@ -59,6 +59,10 @@ return { completion = { callSnippet = "Replace", }, + diagnostics = { + -- Get the language server to recognize the `vim` global + globals = { "vim", "require" }, + }, }, }, },