Skip to content

Instantly share code, notes, and snippets.

@jgreco
Created January 12, 2019 01:41
Show Gist options
  • Save jgreco/a893fdf635b8dde4afe966c7a8ba49f2 to your computer and use it in GitHub Desktop.
Save jgreco/a893fdf635b8dde4afe966c7a8ba49f2 to your computer and use it in GitHub Desktop.
-- placed in .config/mpv/user-builtins/
local msg = require 'mp.msg'
local function ping()
msg.error("PONG")
end
return {
ping = ping,
}
-- placed in .config/mpv/scripts/
local test = require 'test'
test.ping()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment