irongit

A Neovim plugin enabling you to solve LeetCode problems.

fix(`Leet fold`): show warning when section not found

kawreauthored
parent 4f095e7commit af9247cf6586b9efbfcbe0faffe71b826ba79f8cBrowse files

1 file changed, +2 -0

+2-0lua/leetcode-ui/question.lua
@@ -113,6 +113,8 @@ function Question:editor_fold_imports(strict)
113113 ---@diagnostic disable-next-line: param-type-mismatch
114114 pcall(vim.cmd, ("%d,%dfold"):format(range.start_i or 1, range.end_i))
115115 end)
116+ else
117+ log.warn("`@leet imports` section not found in editor.")
116118 end
117119 end
118120