📢 Sound 👏 effect 👏 driven 👏 coding 👏 for 👏 NeoVim 📢
Bored with your NeoVim experience? Want to spice it up somehow? Well, look no further!
This is a NeoVim plugin that allows you to play the greatest sound to have ever been discovered by humans (the metal pipe falling sound effect), as well as any other sound effect you want to play, whenever you want to play it.
- 📣 Play the metal pipe sound effect whenever you want.
- 📣 Play any sound file that you have on your computer whenever you want.
Using vim-plug
Plug 'pavlo-skobnikov/metal-pipe.nvim'
Using lazy.nvim
return {
'pavlo-skobnikov/metal-pipe.nvim',
event = 'VeryLazy',
}
After installing, you have access to two commands.
:PlayMetalPipeSound
:PlaySoundAtPath <~/path/to/sound/file>
require('metal-pipe').play_metal_pipe_sound()
require('metal-pipe').play_sound('<~/path/to/sound/file>')
vim.keymap.set('n', '<leader>mp', function()
require('metal-pipe').play_metal_pipe_sound()
end, { desc = "Play Metal Pipe Sound" })
vim.api.nvim_create_autocmd('BufWritePost', {
group = vim.api.nvim_create_augroup('PlayMetalPipeOnBufferWrite', { clear = true }),
pattern = { '*' },
callback = function() require('metal-pipe').play_metal_pipe_sound() end,
desc = "Play a sound when a buffer is written to disk",
})