[!IMPORTANT]
I don't take time to update this, give a look at https://github.com/tamton-aquib/mpv.nvim
play music/video in neovim using mpv
this plugin require mpv executable installed and discoverable in your PATH
pacman -S mpv
apt install mpv
pacman -S socat
apt install socat
see its github readme for how to install it on your neovim config (voldikss/vim-floaterm)
use {
'Saverio976/music.nvim',
run = ':MusicInstall',
requires = { 'voldikss/vim-floaterm' }
}
command! -nargs=1 -complete=file PlayMusic lua require('music_nvim').PlayMusicUrl([[<args>]])
open a terminal and run mpv to play only the sound
command! -nargs=1 -complete=file MusicPlay lua require('music_nvim').PlayMusicUrl([[<args>]])
open a terminal and run mpv to play only the sound
command! -nargs=1 -complete=file MusicPlayVideo lua require('music_nvim').PlayMusicVideoUrl([[<args>]])
open a terminal and run mpv to play the sound + video
command! MusicNext lua require('music_nvim').next_music()
pass to the next music (or stop it if not a playlist)
command! MusicPrev lua require('music_nvim').next_music()
pass to the previous music (if playlist)
command! MusicUnShuffle lua require('music_nvim').unshuffle_music()
shuffle the playlist
command! MusicUnShuffle lua require('music_nvim').unshuffle_music()
unshuffle the playlist
command! MusicQueue lua require('music_nvim').queue_music()
show queue
command! MusicAllPlaylist lua require('music_nvim').allplaylist_music()
show all the play list
man mpv
for better info)p
pause music
(same as )
<Space>
pause music
(same as p)
Left
and Right
arrow
go backaward/forward a little
Down
and Up
arrow
go backaward/forward
<Enter>
pass to the next music (or stop music if not a playlist)
>
go to next music
<
go to last music
repo archi for a plugin: RishabhRD/nvim-cheat.sh
play sound / video: mpv
control mpv in a terminal: mpvc