Skip to content

Automagically set your discord status when you open neovim.

Notifications You must be signed in to change notification settings

osteensco/discordStatus.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

discordStatus.nvim

A simple plugin that sets your discord status for you when you open up neovim.

Setup

--Lazy setup
    {
        'osteensco/discordStatus.nvim',
        dependencies = { "osteensco/dotenv.nvim" },
    },

-- Defaults
require('discordStatus').setup({
    discordEnvVariable = "DISCORDTOKEN", --The environment variable name of your discord token. 
    discordAuthToken = nil, --Alternatively provide the auth token directly.
    openStatus = { --Status(es) to set when neovim is opened.
        "Neovim BTW"
    },
    closeStatus = { nil }, --Status(es) to set when neovim is closed.
})

Some additional notes on the config:

Apart from setting an environment variable normally, you can add a .env file in your neovim config's root directory and discordStatus.nvim will look for it here if not found otherwise. If you are providing your auth token directly, you will need to read it in yourself. In openStatus and closeStatus fields, if the length is > 1 a random status from this table will be chosen. A value of nil will simply clear out your status.

Discord auth token

An easy way to get an auth token is via browser dev tools. Go to discord.com, login, and navigate to the network tab. For a more detailed explaination, click here.

About

Automagically set your discord status when you open neovim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages