⚠️ 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.
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
}
Just invoke a command:
:TouchPipingStart
Or provide size overrides:
:TouchPipingStart 24 8
- 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.