From 0f8c62f2d18fd86e2bad01a33e5e9beb4e2ef77b Mon Sep 17 00:00:00 2001 From: nathan11 Date: Tue, 25 Jul 2023 00:52:07 -0600 Subject: first commit --- lua/rickroll.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lua/rickroll.lua (limited to 'lua/rickroll.lua') diff --git a/lua/rickroll.lua b/lua/rickroll.lua new file mode 100644 index 0000000..71465d4 --- /dev/null +++ b/lua/rickroll.lua @@ -0,0 +1,16 @@ +M = {} + +function M.rickroll() + local handle = io.popen('xdg-open ~/.config/nvim/assets/rickroll.mp4 > /dev/null 2> /dev/null') + handle:close() +end + +vim.api.nvim_create_user_command("Rickroll", M.rickroll, {}) + +-- Hehehehehehe. If you are reading this griffin JUST USE HJKL!!! +vim.keymap.set({"i", "n", "v"}, "", M.rickroll) +vim.keymap.set({"i", "n", "v"}, "", M.rickroll) +vim.keymap.set({"i", "n", "v"}, "", M.rickroll) +vim.keymap.set({"i", "n", "v"}, "", M.rickroll) + +return M -- cgit v1.2.3