From d10bf3060bd15b358c75294d1ec784907ca272a5 Mon Sep 17 00:00:00 2001 From: James Dixon Date: Sat, 30 Aug 2025 17:52:55 -0400 Subject: [PATCH] Add discord presence plugin for neovim --- config/nvim/.config/nvim/lua/config/lazy.lua | 3 +++ .../lua/plugin-config/discord-presence.lua | 24 +++++++++++++++++++ .../.config/nvim/lua/plugin-config/init.lua | 3 +++ 3 files changed, 30 insertions(+) create mode 100644 config/nvim/.config/nvim/lua/plugin-config/discord-presence.lua diff --git a/config/nvim/.config/nvim/lua/config/lazy.lua b/config/nvim/.config/nvim/lua/config/lazy.lua index 0d9c4f5..56c749d 100644 --- a/config/nvim/.config/nvim/lua/config/lazy.lua +++ b/config/nvim/.config/nvim/lua/config/lazy.lua @@ -64,6 +64,9 @@ require("lazy").setup({ 'nvim-treesitter/nvim-treesitter', 'j-hui/fidget.nvim', + -- discord + 'andweeb/presence.nvim', + -- colorschemes 'rose-pine/neovim', 'w0ng/vim-hybrid', diff --git a/config/nvim/.config/nvim/lua/plugin-config/discord-presence.lua b/config/nvim/.config/nvim/lua/plugin-config/discord-presence.lua new file mode 100644 index 0000000..9371db2 --- /dev/null +++ b/config/nvim/.config/nvim/lua/plugin-config/discord-presence.lua @@ -0,0 +1,24 @@ +-- The setup config table shows all available config options with their default values: +require("presence").setup({ + -- General options + auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) + neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image + main_image = "neovim", -- Main image display (either "neovim" or "file") + client_id = "793271441293967371", -- Use your own Discord application client id (not recommended) + log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") + debounce_timeout = 10, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(, true)`) + enable_line_number = false, -- Displays the current line number instead of the current project + blacklist = {}, -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches + buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "