From 77f00762a283d2c649ea0bc11399d7287f783754 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 11 Oct 2024 13:02:08 -0400 Subject: [PATCH] feat: implement toggle option for discord presence --- lua/config/options.lua | 2 ++ lua/plugins/util.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/lua/config/options.lua b/lua/config/options.lua index 137a76a..dda29b7 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -43,6 +43,8 @@ vim.g.encourage_me = true ---@type boolean Options: vim.g.usewakatime = true ---@type boolean Options: -- Allow music controls and stats vim.g.usemusic = false ---@type boolean Options: +-- Allow discord presence +vim.g.usediscord = false ---@type boolean Options: -- Enable HardTime on startup vim.g.usehardtime = false ---@type boolean Options: -- Enable Image plugin on compatible terminals diff --git a/lua/plugins/util.lua b/lua/plugins/util.lua index 517d97f..260e46c 100644 --- a/lua/plugins/util.lua +++ b/lua/plugins/util.lua @@ -127,6 +127,7 @@ return { { -- Discord Presence "IogaMaster/neocord", event = "VeryLazy", + cond = data.func.check_global_var("usediscord", true, true), opts = { logo = "https://raw.githubusercontent.com/rootiest/rootiest-nvim/b949af32e72db9fc35c18e14e2088710dc36dd15/logo/icon.png", main_image = "logo",