mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 05:20:04 +08:00
56b9d14e9a
BREAKING CHANGE: `~/Music` is standard on macOS and also on FreeDesktop's XDG.
52 lines
1.0 KiB
Markdown
52 lines
1.0 KiB
Markdown
---
|
|
title: "SpaceVim tools#mpv layer"
|
|
description: "This layer provides mpv integration for SpaceVim"
|
|
---
|
|
|
|
# [SpaceVim Layers:](https://spacevim.org/layers) tools#mpv
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
- [Description](#description)
|
|
- [Install](#install)
|
|
- [Options](#options)
|
|
- [Key bindings](#key-bindings)
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
## Description
|
|
|
|
This layer provides mpv integration for SpaceVim.
|
|
|
|
## Install
|
|
|
|
To use this configuration layer, add it to your `~/.SpaceVim.d/init.toml`.
|
|
|
|
```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:
|
|
|
|
```toml
|
|
[[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 |
|