Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nvim-spotify

> 编程语言
Open source

For productivity addicts who enjoy coding while listening to Spotify, and cannot lose their focus switching to the app to control their music.

188 stars0 likes1 views
WebsiteGitHub

About

For productivity addicts who enjoy coding while listening to Spotify, and cannot lose their focus switching to the app to control their music.

nvim-spotify

For productivity addicts who enjoy coding while listening to Spotify, and cannot lose their focus switching to the app to control their music.

nvim-spotify requires spotify-tui

Features

  • Display/Filter the search results with Telescope

  • Currently playing statusline.

  • Pause/Resume a track #

  • Skip a track

  • Add a track to the library

  • Display the name of what's being played

  • Select which device to play on

  • Search by:

    • Track ( or CR)
    • Album (``)
    • Playlist (``)
    • Artist (``)

Requirements

nvim-spotify is a wrapper for spotify-tui, therefore, it is required for this plugin to work. Check their Github repository for installation instructions

  • Spotify TUI
  • Golang
  • Telescope

Installation

packer

lua
-- Lua
use {
    'KadoBOT/nvim-spotify',
    requires = 'nvim-telescope/telescope.nvim',
    config = function()
        local spotify = require'nvim-spotify'

        spotify.setup {
            -- default opts
            status = {
                update_interval = 10000, -- the interval (ms) to check for what's currently playing
                format = '%s %t by %a' -- spotify-tui --format argument
            }
        }
    end,
    run = 'make'
}

vim-plug

viml
Plug 'KadoBOT/nvim-spotify', { 'do': 'make' }

Notes

Decreasing the update_interval value means more API calls in a shorter period. Because of the Spotify API rate limiter, setting this too low can block future requests. Besides that, those constant updates can make your computer slow. So bear this in mind when changing this value.

Usage

By default, the search will look for tracks. You can switch the type of the search by pressing one of the Keymaps Shortcuts

nvim-spotify has two commands:

Connecting to a Device

Use this command to select which device Spotify should play on.

bash
:SpotifyDevices

Opening search input

Spotify Search input. Check the keymaps below for Search shortcuts.

bash
:Spotify

Default keymaps

The following keymaps are set by default when the Spotify search input is open:

mode key Description
normal Esc Close
normal q Close
normal, insert C-T Search for Tracks
normal, insert C-Y Search for Playlists
normal, insert C-L Search for Albums
normal, insert C-R Search for Artists

Extra keymaps

You can also define the additional following keymaps

…

Statusline

You can display what's currently playing on your statusline. The example below shows how to show it on lualine, although the configuration should be quite similar on other statusline plugins:

lua
local status = require'nvim-spotify'.status

status:start()

require('lualine').setup {
    sections = {
        lualine_x = {
            status.listen
        }
    }
}

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goluaneovimnvimspotify

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言