File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ fn get_rules() -> Vec<Require> {
50
50
// Check for visible cursor
51
51
Require :: Existence ( Rule :: has_bg( "ui.cursor.primary" ) ) ,
52
52
Require :: Existence ( Rule :: has_either( "ui.cursor.match" ) ) ,
53
+ // Check for git gutter
54
+ Require :: Existence ( Rule :: has_fg( "diff.plus" ) ) ,
55
+ Require :: Existence ( Rule :: has_fg( "diff.minus" ) ) ,
56
+ Require :: Existence ( Rule :: has_fg( "diff.delta" ) ) ,
57
+ Require :: Difference ( "diff.plus" , "diff.minus" ) ,
58
+ Require :: Difference ( "diff.plus" , "diff.delta" ) ,
53
59
]
54
60
}
55
61
@@ -157,7 +163,8 @@ pub fn lint(file: String) -> Result<(), DynError> {
157
163
}
158
164
let path = path:: themes ( ) . join ( file. clone ( ) + ".toml" ) ;
159
165
let theme = std:: fs:: read ( & path) . unwrap ( ) ;
160
- let theme: Theme = toml:: from_slice ( & theme) . expect ( "Failed to parse theme" ) ;
166
+ let theme: Theme =
167
+ toml:: from_slice ( & theme) . expect ( format ! ( "Failed to parse: {}" , file) . as_str ( ) ) ;
161
168
162
169
let mut messages: Vec < String > = vec ! [ ] ;
163
170
get_rules ( ) . iter ( ) . for_each ( |lint| match lint {
You can’t perform that action at this time.
0 commit comments