Skip to content

Commit

Permalink
fix: neocord logo and logo_tooltip
Browse files Browse the repository at this point in the history
User couldn't set the logo url, also logo_tooltip didn't allow custom string because of the enum.
  • Loading branch information
redyf authored and GaetanLepage committed Feb 18, 2024
1 parent 9ec2de0 commit d656834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/utils/neocord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ with lib;
`:lua package.loaded.neocord:update()`
'';

logo = helpers.defaultNullOpts.mkEnum ["auto" "url"] "auto" ''
logo = helpers.defaultNullOpts.mkStr "auto" ''
Update the Logo to the specified option ("auto" or url).
'';

logo_tooltip = helpers.defaultNullOpts.mkEnum ["null" "string"] "null" ''
logo_tooltip = helpers.mkNullOrStr ''
Sets the logo tooltip
'';

Expand Down
2 changes: 1 addition & 1 deletion tests/test-sources/plugins/utils/neocord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#General options
auto_update = true;
logo = "auto";
logo_tooltip = null;
logo_tooltip = "Nixvim";
main_image = "language";
client_id = "1157438221865717891";
log_level = null;
Expand Down

0 comments on commit d656834

Please sign in to comment.