A Neovim plugin enabling you to solve LeetCode problems.
| 1 | local Text = require("nui.text") |
| 2 | |
| 3 | ---@class lc.ui.Indent : lc.ui.Line |
| 4 | local Indent = Text:extend("LeetIndent") |
| 5 | |
| 6 | -- |
| 7 | local text = ("\t"):rep(i or 0) .. (char or "") |
| 8 | Indent.super.init(self, text, hl) |
| 9 | end |
| 10 | |
| 11 | ---@type fun(c: integer, text: string, hl: string): lc.ui.Indent |
| 12 | local LeetIndent = Indent |
| 13 | |
| 14 | return LeetIndent |