A lightweight Neovim plugin that tracks typing combos and displays a HUD, complete with a shrinking progress bar and optional sound effects—like a fighting game!
![screenshot or gif if you have one]
- Live combo counter while typing
- Shrinking progress bar that resets after inactivity
- Persistent or dynamic HUD
- Configurable placement (
top,bottom, or custom) - Sound effect hooks for custom milestones
Using lazy.nvim:
{
"keithetruesdell/combo-mode.nvim",
config = function()
require("combo-mode").setup({
timeout = 4000,
always_visible = true,
placement = "bottom",
})
require("combo-mode").on(5, function()
vim.api.nvim_echo({{ "🔥 Combo x5!", "WarningMsg" }}, false, {})
end)
require("combo-mode").on(10, function()
vim.fn.jobstart({ "aplay", "~/sounds/ultra-combo.wav" }, { detach = true })
end)
end
}NVIM Combo-Mode in Lua
You can register specific actions and events when the combo hits a certain threshhold. This will make it more like PowerMode
require("combo-mode").on(10, function()
vim.fn.jobstart({ "aplay", "~/sounds/ultra-combo.wav" }, { detach = true })
end)