From 8b54a4eb6fa9e4a9a6e54be48266b8720580fc91 Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:54:27 -0500 Subject: [PATCH] rich-presence/neocord: fix log_level config --- modules/rich-presence/neocord/config.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/rich-presence/neocord/config.nix b/modules/rich-presence/neocord/config.nix index 08bcea1..0ff3890 100644 --- a/modules/rich-presence/neocord/config.nix +++ b/modules/rich-presence/neocord/config.nix @@ -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; @@ -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}",