Open dev-ardi opened 10 months ago
Temporary workaround for me:
local function workspace(name)
if name == "nvim" then
return "Wasting time on my config"
end
if name == "rust" then
return "Hacking away at the compiler!"
end
if name == "" or name == nil then
local pwd = vim.fn.getcwd()
local ws = pwd:match("^.+/(.+)/?$")
if ws == "" then
return "I hope you're having a great day :)" -- Friendly error message: This is not allowed to be empty!!
end
return workspace(ws)
end
return "Working on " .. name
end
then workspace_text = workspace,
Description
That doesn't work
Neovim version
OS information
Steps to reproduce
Use "" or the given function in something that doesn't have a filename (like telescope)
Logs
[presence.nvim] Failed to set activity in Discord: Received error event - child "activity" fails because [ child "details" fails because ["details" is not allowed to be empty]] (code 4000)