GithubHelp home page GithubHelp logo

mpv.nvim's Introduction

mpv.nvim

A music player inside neovim that uses mpv.

Extracted from stuff.nvim.

Note This is an experimental plugin without any proper testing.

Showcase

2022-12-27_19-00-31.mp4

Requirements:

  • neovim (0.7+)
  • mpv
  • youtube-dl

Installation and default setup

-- Using lazy.nvim:
{ "tamton-aquib/mpv.nvim", config=true }

Usage/Configuration

  • The command: :MpvToggle
  • The actual api: require("mpv").toggle_player()
Click to view default config
require("mpv").setup {
    width = 50,
    height = 5,              -- Changing these two might break the UI ๐Ÿ˜ฌ
    border = 'single',
    setup_widgets = false,   -- to activate the widget components
    timer = {
        after = 1000,
        throttle = 250,      -- Update time for the widgets. (lesser the faster)
    }
}
  • Keymaps:
key action
<CR> Input song/link
p / <space\> pause/play
q quit
> / < next/prev in playlist
m mute/unmute
Statusline/Tabline components

make sure you set setup_widgets to true inside setup()

-- Components are: g:mpv_title, g:mpv_visualizer, g:mpv_percent
require("lualine").setup {
    sections = {
        lualine_c = {
            {
                function() return ' ๏ข… ' end,
                color='green',
                on_click=require("mpv").toggle_player
            },
            'g:mpv_title'
        },
    }
}

Features

  • search by keyword.
  • paste links from youtube (playlists too).
  • mouse support (quite buggy)
  • statusline/tabline components.

Todo's

moved to todo.norg

Inspiration/Credits

mpv.nvim's People

Contributors

tamton-aquib avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.