From 583f6a1337590e0f55d7a3bbf8a79fa65202df65 Mon Sep 17 00:00:00 2001 From: Alexander Brevig Date: Wed, 15 Mar 2023 15:17:00 +0100 Subject: feat: lint for `ui.virtual` and catch present and future virtual based features (#6320) * feat: lint for inlay-hint.parameter and .type * fix: lint against ui.virtual and not the new inlay-hint specifically--- xtask/src/themelint.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xtask/src') diff --git a/xtask/src/themelint.rs b/xtask/src/themelint.rs index 2a5ef4b7..f7efb7d9 100644 --- a/xtask/src/themelint.rs +++ b/xtask/src/themelint.rs @@ -36,6 +36,8 @@ fn get_rules() -> Vec { Require::Difference("ui.statusline.normal", "ui.statusline.select"), // Check for editor.cursorline Require::Existence(Rule::has_bg("ui.cursorline.primary")), + // Check for general ui.virtual (such as inlay-hint) + Require::Existence(Rule::has_fg("ui.virtual")), // Check for editor.whitespace Require::Existence(Rule::has_fg("ui.virtual.whitespace")), // Check fir rulers -- cgit v1.2.3-70-g09d2