Skip to content

Commit

Permalink
Merge pull request NotAShelf#196 from FrothyMarrow/fix-neocord-logs
Browse files Browse the repository at this point in the history
rich-presence/neocord: fix log_level config
  • Loading branch information
NotAShelf authored Jan 18, 2024
2 parents 1a43372 + 18458dd commit 88e8136
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/rich-presence/neocord/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
}: let
inherit (lib) mkIf nvim boolToString;
inherit (lib.nvim.lua) listToLuaTable;
inherit (lib.strings) escapeNixString;
inherit (builtins) toString;

cfg = config.vim.presence.neocord;
Expand All @@ -20,11 +21,11 @@ in {
logo_tooltip = "${cfg.logo_tooltip}",
main_image = "${cfg.main_image}",
client_id = "${cfg.client_id}",
log_level = "${
log_level = ${
if cfg.log_level == null
then "nil"
else cfg.log_level
}",
else "${escapeNixString cfg.log_level}"
},
debounce_timeout = ${toString cfg.debounce_timeout},
blacklist = ${listToLuaTable cfg.blacklist},
show_time = "${boolToString cfg.show_time}",
Expand Down

0 comments on commit 88e8136

Please sign in to comment.