andweeb / presence.nvim

Discord Rich Presence for Neovim
793 stars 68 forks source link

Not updating across different nvim instances across different tmux windows On Fedora #144

Open BaktashGorgani opened 6 months ago

BaktashGorgani commented 6 months ago

Description

It will show the first instance and any file I switch to in there, but every other nvim instance that are in other tmux windows will not update the status

Neovim version

NVIM v0.9.5
Build type: RelWithDebInfo
LUAJIT 2.1.1692716794

OS information

Fedora Linux 39 (Workstation Edition)

Steps to reproduce

no extra configurations. Discord installed manually as I could not figure out how to get this plugin working with the flatpak

Logs

Workspace loading: 0 / 0

BaktashGorgani commented 6 months ago

If I close the first instance, switch to a different tmux window, and start swtiching through files, then it starts updating with the second nvim instance's files

Zachiah commented 5 months ago

I am getting the same behavior on NixOS with different tmux windows. I don't know if this is expected or not

jiriks74 commented 3 months ago

This is probably expected behavior. Only one app can take over RichPresence. To make this work I'd have to create some communication between the Neovim instances so that the one that's used takes over RichPresence.

If you want to you can transfer this to my repository and see whether someone has a good idea on implementing this without it being overly complex. I don't have an idea on implementing this but you can leave it at my repo as a feature request in case someone want's to take it over.