Merge pull request #196 from FrothyMarrow/fix-neocord-logs

rich-presence/neocord: fix log_level config
This commit is contained in:
raf 2024-01-18 08:24:21 +00:00 committed by GitHub
commit d2def2b561
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@
}: let }: let
inherit (lib) mkIf nvim boolToString; inherit (lib) mkIf nvim boolToString;
inherit (lib.nvim.lua) listToLuaTable; inherit (lib.nvim.lua) listToLuaTable;
inherit (lib.strings) escapeNixString;
inherit (builtins) toString; inherit (builtins) toString;
cfg = config.vim.presence.neocord; cfg = config.vim.presence.neocord;
@ -20,11 +21,11 @@ in {
logo_tooltip = "${cfg.logo_tooltip}", logo_tooltip = "${cfg.logo_tooltip}",
main_image = "${cfg.main_image}", main_image = "${cfg.main_image}",
client_id = "${cfg.client_id}", client_id = "${cfg.client_id}",
log_level = "${ log_level = ${
if cfg.log_level == null if cfg.log_level == null
then "nil" then "nil"
else cfg.log_level else "${escapeNixString cfg.log_level}"
}", },
debounce_timeout = ${toString cfg.debounce_timeout}, debounce_timeout = ${toString cfg.debounce_timeout},
blacklist = ${listToLuaTable cfg.blacklist}, blacklist = ${listToLuaTable cfg.blacklist},
show_time = "${boolToString cfg.show_time}", show_time = "${boolToString cfg.show_time}",