@@ -25,7 +25,7 @@ M.defaults = {
2525 highlight = default_highlight_groups ,
2626 presets = {},
2727 flow_state_timeout_ms = FLOW_STATE_TIMEOUT_MS ,
28- disable_dim_background = false ,
28+ dim_background = true ,
2929 history_max_size = HISTORY_MAX_SIZE ,
3030 auto_select_target = false ,
3131 native_search = true ,
@@ -141,10 +141,17 @@ function M.validate(user_config)
141141 end
142142
143143 --
144- -- Validate disable_dim_background
144+ -- Validate dim_background (supports deprecated disable_dim_background)
145145 --
146- if config .disable_dim_background == nil or type (config .disable_dim_background ) ~= " boolean" then
147- config .disable_dim_background = false
146+ if config .disable_dim_background ~= nil then
147+ log .warn (" 'disable_dim_background' is deprecated, use 'dim_background' instead" )
148+ if config .dim_background == nil or config .dim_background == M .defaults .dim_background then
149+ config .dim_background = not config .disable_dim_background
150+ end
151+ config .disable_dim_background = nil
152+ end
153+ if config .dim_background == nil or type (config .dim_background ) ~= " boolean" then
154+ config .dim_background = true
148155 end
149156
150157 --
@@ -161,6 +168,13 @@ function M.validate(user_config)
161168 config .auto_select_target = false
162169 end
163170
171+ --
172+ -- Validate native_search
173+ --
174+ if config .native_search == nil or type (config .native_search ) ~= " boolean" then
175+ config .native_search = true
176+ end
177+
164178 --
165179 -- Validate count_behavior
166180 --
0 commit comments