spotify.nvim icon indicating copy to clipboard operation
spotify.nvim copied to clipboard

Unknown function: SpotifyAction

Open erdajt opened this issue 1 year ago • 3 comments

Error:

Error executing Lua callback: Vim:E117: Unknown function: SpotifyAction
stack traceback:
        [C]: in function 'SpotifyAction'
        ...cal/share/nvim/lazy/spotify.nvim/lua/spotify/actions.lua:68: in function <...cal/share/nvim/lazy/spotify.nvim/lua/spotify/actions.lua:67>
        ...cal/share/nvim/lazy/spotify.nvim/lua/spotify/actions.lua:37: in function 'execute'
        ....local/share/nvim/lazy/spotify.nvim/lua/spotify/init.lua:194: in function <....local/share/nvim/lazy/spotify.nvim/lua/spotify/init.lua:192>

When does it occurr?

When any command is executed, show, play, next, previous

I do have python 3.13.2 install with the required packages.

erdajt avatar Mar 06 '25 13:03 erdajt

OS: Arch Linux on x11

neovim version:

NVIM v0.10.4
Build type: RelWithDebInfo
LuaJIT 2.1.1736781742

Package manager: lazy.nvim

{
    'stsewd/spotify.nvim',
    build = ':UpdateRemotePlugins',
    config = function()
      require('spotify').setup()
    end,
    init = function()
      vim.keymap.set('n', '<leader>ss', ':Spotify play/pause<CR>', { silent = true })
      vim.keymap.set('n', '<leader>sj', ':Spotify next<CR>', { silent = true })
      vim.keymap.set('n', '<leader>sk', ':Spotify prev<CR>', { silent = true })
      vim.keymap.set('n', '<leader>so', ':Spotify show<CR>', { silent = true })
      vim.keymap.set('n', '<leader>sc', ':Spotify status<CR>', { silent = true })
    end,
  },

erdajt avatar Mar 06 '25 13:03 erdajt

Hi, I suppose the :UpdateRemotePlugins command wasn't run for some reason, you can try running it and see if it works after that.

stsewd avatar Mar 06 '25 17:03 stsewd

Hello,

I had the same issue here. Even running :UpdateRemotePlugins wasn't fixing it.

TBH I am not sure what fixed it, but I guess it was missing pynvim (in Arch, I installed it with sudo pacman -S python-pynvim). After installing it, the :UpdateRemovePlugins worked properly.

rafaelhdr avatar Jul 04 '25 19:07 rafaelhdr