Skip to content

KeithETruesdell/combo-mode.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

combo-mode.nvim 🔥

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]

✨ Features

  • 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

📦 Installation

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)

About

NVIM Combo-Mode in Lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages