melody.nvim is a Neovim plugin that allows you to search and play music tracks directly from your Neovim environment using the Telescope picker. It integrates with the mpv
media player and provides a convenient way to search for and play music files without leaving your coding environment.
NOTE: this plugin is experimental and under development! 👷
- Search and play music tracks from within Neovim.
- Utilizes the
mpv
media player for seamless playback. - Integrates with the Telescope picker for an interactive selection experience.
- Configurable music directory for easy customization.
Install the required plugins using your preferred package manager. For example, using Lazy:
{
"whleucka/melody.nvim",
requires = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim"
},
event = "BufReadPre",
keys = {
{ "<leader>mm", "<cmd>lua require('melody').music_search()<cr>)", desc = "Melody search" },
},
opts = {
music_dir = "/path/to/your/music",
}
},
- Press
<leader>mm
to trigger the music search. - A Telescope picker will open with the list of available tracks from your configured music directory.
- Navigate and select a track using the arrow keys or mouse.
- Press
<Enter>
to play the selected track usingmpv
.
- Neovim (0.5+)
mpv
media player
If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.
This project is licensed under the MIT License.