Skip to content

Commit

Permalink
fix(config): ensure idle icon is set when validating the config
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Jan 3, 2025
1 parent 875497d commit d5c4231
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/cord/plugin/config/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ function M:validate(user_config)
if not config.editor.icon then
config.editor.icon = icons.get(client.icon)
end

if not config.idle.icon then
config.idle.icon = icons.get(icons.DEFAULT_IDLE_ICON)
end
end

::continue::

if not config.idle.icon then
config.idle.icon = icons.get(icons.DEFAULT_IDLE_ICON)
end

config_manager.set_config(config)
self.config = config

Expand Down

0 comments on commit d5c4231

Please sign in to comment.