andweeb / presence.nvim

Discord Rich Presence for Neovim
793 stars 68 forks source link

add ability to put custom main image #106

Open SIGMazer opened 1 year ago

SIGMazer commented 1 year ago

102

i edit init.lua to allow users change main image in setup

require("presence").setup({
 .... 
    main_image          = "neovim",                   -- Main image display (either "neovim" or "file")
....})

now it will be neovim or file or image-url

Example:

    main_image    = "https://ih1.redbubble.net/image.4300886209.2465/st,small,845x845-pad,1000x1000,f8f8f8.jpg"

image @andweeb

khar34 commented 10 months ago

i can't change images other than your example link, it only accepts image address links that are from redbubble image

SIGMazer commented 10 months ago

@khar34
i try other images and it work for me, so make sure that you copy image address not copy link address and can you share the images link that not working image

khar34 commented 10 months ago

@SIGMazer Any discord image address link (if you wanna try: https://media.discordapp.net/attachments/749651315851919460/1150139414702465114/02f377416413f42f103a72c27e49acef.png?width=682&height=671), I also tried some links from images that are posted on social media like Facebook. I tried posting images to RedBubble and then got the image address to put in the config, It actually worked. I'm just wondering why any links that are not from RedBubble wouldn't work update: Pinterest links do work image

SIGMazer commented 10 months ago

@khar34 i believe that the problem with just discord media(for now), because i tried randomly pick images from google and it work

SIGMazer commented 1 month ago

@andweeb