Unknown function: SpotifyAction
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.
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,
},
Hi, I suppose the :UpdateRemotePlugins command wasn't run for some reason, you can try running it and see if it works after that.
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.