Play typewriter sound in Neovim.
- Linux only
- SDL2
- SDL_mixer 2.0
{
'v1nh1shungry/typewriter.nvim',
keys = { { '<Leader>uk', function() require('typewriter').toggle() end, desc = 'Toggle typewriter' } },
lazy = false,
opts = {},
}NOTE: make sure you have called require('typewriter').setup() before you use the plugin!
{
-- default ocnfiguration
enabled = true, -- whether to enable typewriter when enter Neovim
volume = 100,
libs = { -- you can specify the library path manually if not found
sdl = nil, -- path to libSDL2.so
mixer = nil, -- path to libSDL2_mixer.so
},
}toggle(): Enable/Disable typewriter