diff options
author | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
---|---|---|
committer | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
commit | 0f8c62f2d18fd86e2bad01a33e5e9beb4e2ef77b (patch) | |
tree | e098cecfe770af08bd77eda320f8a0260c3c68c6 /lua/rickroll.lua |
first commit
Diffstat (limited to 'lua/rickroll.lua')
-rw-r--r-- | lua/rickroll.lua | 16 |
1 files changed, 16 insertions, 0 deletions
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"}, "<Right>", M.rickroll) +vim.keymap.set({"i", "n", "v"}, "<Left>", M.rickroll) +vim.keymap.set({"i", "n", "v"}, "<Up>", M.rickroll) +vim.keymap.set({"i", "n", "v"}, "<Down>", M.rickroll) + +return M |