Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

shushtain/touch-piping.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Touch Piping for Neovim

⚠️Deprecated but functional. Fun project, though. Feel free to clone it and build upon.

A simple game where you can practice navigating the buffer by fixing broken pipes.

Example

Setup

Setup is optional and used only to override default configuration. The defaults are:

return {
  "shushtain/touch-piping.nvim",
  config = function()
    require("touch-piping").setup({
      -- Grid size: { cols, rows }
      size = { 18, 6 },

      -- Style: rounded | single | bold | double
      style = "rounded",

      -- If `true`, window will have "solid" border
      -- which blends completely with the background
      no_border = false,

      -- Highlight groups
      highlights = {
        default = "Normal",
        success = "TouchPipingSuccess",
      }

      -- Buffer-local keymaps
      keymaps = {
        rotate_clockwise = "r",
        rotate_reverse = "R",
        quit = "q",
      },
    })
  end
}

Usage

Just invoke a command:

:TouchPipingStart

Or provide size overrides:

:TouchPipingStart 24 8

Considerations

  • Make sure you know how to quit a window in a regular way before playing.
  • Tasks are generated randomly, so there is a small chance of an empty task.
  • At least 5x5 grid is recommended to get something playable.
  • Style double has the best shapes, but needs bigger font size.

About

Practice Vim navigation with a game.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages