1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:10:05 +08:00
SpaceVim/docs/layers/tools/mpv.md
Shidong Wang 56b9d14e9a
refactor(tools#mpv)!: change default musics_directory
BREAKING CHANGE: `~/Music` is standard on macOS and
also on FreeDesktop's XDG.
2021-10-14 23:45:36 +08:00

1.0 KiB

title description
SpaceVim tools#mpv layer This layer provides mpv integration for SpaceVim

SpaceVim Layers: tools#mpv

Description

This layer provides mpv integration for SpaceVim.

Install

To use this configuration layer, add it to your ~/.SpaceVim.d/init.toml.

[[layers]]
  name = "tools#mpv"

Options

  • musics_directory: the directory of musics. By default this option is ~/Music.
  • mpv_interpreter: mpv executable path
  • loop_mode: loop mode, default is random

example:

[[layers]]
    name = 'tools#mpv'
    mpv_interpreter = 'D:\Program Files\mpv\mpv.exe'
    musics_directory = 'F:\other\musics'

Key bindings

Key Binding Description
SPC m m l fuzzy find musics
SPC m m n next musics
SPC m m s stop mpv