A Neovim plugin enabling you to solve LeetCode problems.
| 1 | local Lines = require("leetcode-ui.lines") |
| 2 | |
| 3 | ---@class lc.ui.Padding: lc.ui.Lines |
| 4 | ---@field times integer |
| 5 | local Padding = Lines:extend("LeetPadding") |
| 6 | |
| 7 | ---@param int integer |
| 8 | --- |
| 9 | ---@return lc.ui.Lines |
| 10 | |
| 11 | Padding.super.init(self) |
| 12 | |
| 13 | for _ = 1, int do |
| 14 | self:append(""):endl() |
| 15 | end |
| 16 | end |
| 17 | |
| 18 | ---@type fun(int: integer): lc.ui.Padding |
| 19 | local LeetPadding = Padding |
| 20 | |
| 21 | return LeetPadding |