Skip to content

About

Display Spotify data inside Neovim!

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

Spotty.nvim

Display your current playstate, track/artist/duration within the lualine plugin.

Default Spotty lualine bar Default Spotty lualine bar in different theme Default Spotty lualine bar in different theme again


Warning (Please Read)

This project is in very much early alpha or whatever and is expected to present alot of bugs, so I do not recommend its use if you are looking for a completely stable development environment as of now.

Please report any and all bugs as this helps me iron out this small plugin.

Installation

Requires Lualine and Plenary as dependencies:

'nvim-lualine/lualine.nvim'
'nvim-lua/plenary.nvim'

Install with your preferred package manager.

'externalhost0/spotty.nvim'

Adding two environmental variables is REQUIRED for the plugin to function! As Spotty relies on a Spotify app and the user's client & secret keys.

Creating a Spotify App can be done at their developer dashboard: https://developer.spotify.com/dashboard 'App name' and 'App description' can be set to whatever, Spotty only requires that your app has the 'Redirect URI' as http://127.0.0.1:8000/callback and that the 'Web API' option is checked at the bottom.

You must than copy the associated Client ID and Secret for said app, and export them as environmental variables as show below.

export SPOTIFY_CLIENT_ID="your spotify client id"
export SPOTIFY_CLIENT_SECRET="your spotify client secret"

After performing the above steps, your next launch of Neovim will automatically prompt you to grant your created app permissions.

Setup

In your lualine configuration just add the component "spotty", this may look something like:

sections = {
    lualine_x = {
        {
            "spotty"
        },
    }
}

I provide a couple options for some extra customization inside lualine ( not implemented yet)

opts = {

}

Contributing

Feel free to contribute in any way possible, I appreciate any sort of support for small projects like these.

About

Display Spotify data inside Neovim!

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages