From 056f73e7d9ab169e93cdd66112586ffacb493415 Mon Sep 17 00:00:00 2001 From: Oliver Marriott Date: Wed, 25 Aug 2021 01:17:11 +1000 Subject: [PATCH] Add @diagnostic disable: undefined-global to template --- lua/lush_theme/lush_template.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lush_theme/lush_template.lua b/lua/lush_theme/lush_template.lua index bd3f084..3f2c56c 100644 --- a/lua/lush_theme/lush_template.lua +++ b/lua/lush_theme/lush_template.lua @@ -45,6 +45,9 @@ local lush = require('lush') local hsl = lush.hsl +-- LSP/Linters mistakenly show `undefined global` errors in the spec, they may +-- support an annotation like the following. Consult your server documentation. +---@diagnostic disable: undefined-global local theme = lush(function() return { -- The following are all the Neovim default highlight groups from the docs