-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfcfa0e
commit 963f23a
Showing
9 changed files
with
89 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*lazy.nvim.txt* Last change: 2024 January 25 | ||
|
||
============================================================================== | ||
Table of Contents *tetris.nvim-table-of-contents* | ||
|
||
1. tetris.nvim |tetris.nvim-tetris.nvim| | ||
|
||
**tetris.nvim** is a pure Lua Tetris game for Neovim. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- Math utility functions. | ||
--- Note that we are snapping these directly to the math library. If you hate it, | ||
--- open a PR and refactor and do `local tetris_math = require("tetris.math")` or | ||
--- something and then I will comment about how ugly that is and we can bicker in | ||
--- public. I will concede and look like a jerk and eventually merge your PR. ;) | ||
|
||
---Clamp a number between a minimum and maximum value. | ||
---@param x number Value to clamp | ||
---@param min number Minimum value | ||
---@param max number Maximum value | ||
function math.clamp(x, min, max) | ||
return math.max(math.min(x, max), min) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
column_width = 120 | ||
indent_type = "Spaces" | ||
indent_width = 2 | ||
|
||
[sort_requires] | ||
enabled = true |