fix: wrap discord.nvim options in quotation marks

This commit is contained in:
NotAShelf 2023-02-18 15:46:25 +03:00
parent 12d32e9425
commit 94d4175155
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1

View file

@ -105,25 +105,25 @@ in {
require("presence").setup({ require("presence").setup({
-- General options -- General options
auto_update = true, auto_update = true,
neovim_image_text = ${cfg.image_text}, neovim_image_text = "${cfg.image_text}",
main_image = ${cfg.main_image}, main_image = "${cfg.main_image}",
client_id = ${cfg.client_id}, client_id = "${cfg.client_id}",
log_level = nil, log_level = nil,
debounce_timeout = 10, debounce_timeout = 10,
enable_line_number = ${boolToString cfg.enable_line_number}, enable_line_number = "${boolToString cfg.enable_line_number}",
blacklist = {}, blacklist = {},
buttons = ${boolToString cfg.buttons}, buttons = "${boolToString cfg.buttons}",
file_assets = {}, file_assets = {},
show_time = ${boolToString cfg.show_time}, show_time = "${boolToString cfg.show_time}",
-- Rich Presence text options -- Rich Presence text options
editing_text = ${cfg.rich_presence.editing_text}, editing_text = "${cfg.rich_presence.editing_text}",
file_explorer_text = ${cfg.rich_presence.file_explorer_text}, file_explorer_text = "${cfg.rich_presence.file_explorer_text}",
git_commit_text = ${cfg.rich_presence.git_commit_text}, git_commit_text = "${cfg.rich_presence.git_commit_text}",
plugin_manager_text = ${cfg.rich_presence.plugin_manager_text}, plugin_manager_text = "${cfg.rich_presence.plugin_manager_text}",
reading_text = ${cfg.rich_presence.reading_text}, reading_text = "${cfg.rich_presence.reading_text}",
workspace_text = ${cfg.rich_presence.workspace_text}, workspace_text = "${cfg.rich_presence.workspace_text}",
line_number_text = ${cfg.rich_presence.line_number_text}, line_number_text = "${cfg.rich_presence.line_number_text}",
}) })
''; '';
}; };