百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

nvim-spotify

> 编程语言
开源

对于喜欢一边编码一边听 Spotify 的高效率爱好者,无法在切换到应用程序来控制音乐时失去专注。

188 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

对于喜欢一边编码一边听 Spotify 的高效率爱好者,无法在切换到应用程序来控制音乐时失去专注。

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goluaneovimnvimspotify

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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