@@ -111,34 +111,32 @@ local function check_configuration()
111111 return
112112 end
113113
114- local values = config .get ()
115-
116114 local valid_positions = { ' left' , ' right' , ' top' , ' bottom' }
117- if not vim .tbl_contains (valid_positions , values .ui .position ) then
115+ if not vim .tbl_contains (valid_positions , config .ui .position ) then
118116 health .warn (
119- string.format (' Invalid UI position: %s' , values .ui .position ),
117+ string.format (' Invalid UI position: %s' , config .ui .position ),
120118 { ' Valid positions: ' .. table.concat (valid_positions , ' , ' ) }
121119 )
122120 else
123- health .ok (string.format (' UI position: %s' , values .ui .position ))
121+ health .ok (string.format (' UI position: %s' , config .ui .position ))
124122 end
125123
126- if values .ui .window_width <= 0 or values .ui .window_width > 1 then
124+ if config .ui .window_width <= 0 or config .ui .window_width > 1 then
127125 health .warn (
128- string.format (' Invalid window width: %s' , values .ui .window_width ),
126+ string.format (' Invalid window width: %s' , config .ui .window_width ),
129127 { ' Window width should be between 0 and 1 (percentage of screen)' }
130128 )
131129 else
132- health .ok (string.format (' Window width: %s' , values .ui .window_width ))
130+ health .ok (string.format (' Window width: %s' , config .ui .window_width ))
133131 end
134132
135- if values .ui .input_height <= 0 or values .ui .input_height > 1 then
133+ if config .ui .input_height <= 0 or config .ui .input_height > 1 then
136134 health .warn (
137- string.format (' Invalid input height: %s' , values .ui .input_height ),
135+ string.format (' Invalid input height: %s' , config .ui .input_height ),
138136 { ' Input height should be between 0 and 1 (percentage of screen)' }
139137 )
140138 else
141- health .ok (string.format (' Input height: %s' , values .ui .input_height ))
139+ health .ok (string.format (' Input height: %s' , config .ui .input_height ))
142140 end
143141
144142 health .ok (' Configuration loaded successfully' )
0 commit comments