A Neovim plugin enabling you to solve LeetCode problems.
fix(`Leet fold`): show warning when section not found
1 file changed, +2 -0
+2-0lua/leetcode-ui/question.lua
| @@ -113,6 +113,8 @@ function Question:editor_fold_imports(strict) | ||
| 113 | 113 | ---@diagnostic disable-next-line: param-type-mismatch |
| 114 | 114 | pcall(vim.cmd, ("%d,%dfold"):format(range.start_i or 1, range.end_i)) |
| 115 | 115 | end) |
| 116 | + else | |
| 117 | + log.warn("`@leet imports` section not found in editor.") | |
| 116 | 118 | end |
| 117 | 119 | end |
| 118 | 120 |