Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willothy/strat-hero.nvim

Helldivers 2's "Strategem Hero" minigame for Neovim. Become a better Helldiver from the comfort of your favorite editor!
https://github.com/willothy/strat-hero.nvim

neovim neovim-plugin

Last synced: about 2 hours ago
JSON representation

Helldivers 2's "Strategem Hero" minigame for Neovim. Become a better Helldiver from the comfort of your favorite editor!

Awesome Lists containing this project

README

        


strat-hero.nvim


Practice your Helldivers 2 stratagems in Neovim. For Super Earth!

https://github.com/willothy/strat-hero.nvim/assets/38540736/016b6d41-63c2-4c0d-9d97-cfe166e2fecc

## Installation

With [`folke/lazy.nvim`](https://github.com/folke/lazy.nvim):

```lua
require("lazy").setup({
{
"willothy/strat-hero.nvim",
dependencies = {
"MunifTanjim/nui.nvim"
},
config = true,
lazy = true,
cmd = "StratHero"
}
})
```

## Commands

#### `:StratHero[!]`

Opens the game UI if it is not already open. Does nothing if the UI is open or the game is running.

When `:h ` is provided, toggles the game UI, regardless of whether the game is running. Interrupts game progress.

#### `:StratHero open`

Starts the game if it has not already been started. Does nothing if the game is running.

#### `:StratHero start`

Starts the game if it has not already been started. Does nothing if the game is running.

#### `:StratHero stop`

Stops an in-progress game, but does not close the UI.

#### `:StratHero close`

Stops any in-progress game and closes the UI.

## Mappings

You may play the game using `wasd`, `hjkl`, or the arrow keys. Motions to lock users into one input mode will be added in the future.

To start the game from the UI, press any motion key (`wasd`, `hjkl`, or the arrow keys) while the game is not running.

When a game is not running, either `q` or `` will close the UI. If the game is running, only `` will close the UI to prevent from accidentally quitting the game.

When you make a mistake and see the red highlight, you can *immediately* start the stratagem over. The delay is only visual and will be interrupted when
you enter a correct motion.

## Contributing

I would love to hear your feedback and ideas! I would also welcome contributions, especially ones helping to keep the stratagem list up-to-date with Helldivers 2.