A Neovim plugin enabling you to solve LeetCode problems.
docs: update readme
4 files changed, +22 -17
+10-0README.md
| @@ -135,6 +135,16 @@ To see full configuration types see [template.lua](./lua/leetcode/config/templat | ||
| 135 | 135 | |
| 136 | 136 | ---@type boolean |
| 137 | 137 | image_support = false, -- setting this to `true` will disable question description wrap |
| 138 | + | |
| 139 | + keys = { | |
| 140 | + toggle = { "q", "<Esc>" }, ---@type string|string[] | |
| 141 | + confirm = { "<CR>" }, ---@type string|string[] | |
| 142 | + | |
| 143 | + reset_testcases = "r", ---@type string | |
| 144 | + use_testcase = "U", ---@type string | |
| 145 | + focus_testcases = "H", ---@type string | |
| 146 | + focus_result = "L", ---@type string | |
| 147 | + }, | |
| 138 | 148 | } |
| 139 | 149 | ``` |
| 140 | 150 |
+10-0README.zh.md
| @@ -142,6 +142,16 @@ https://github.com/kawre/leetcode.nvim/assets/69250723/aee6584c-e099-4409-b114-1 | ||
| 142 | 142 | |
| 143 | 143 | ---@type boolean |
| 144 | 144 | image_support = false, -- setting this to `true` will disable question description wrap |
| 145 | + | |
| 146 | + keys = { | |
| 147 | + toggle = { "q", "<Esc>" }, ---@type string|string[] | |
| 148 | + confirm = { "<CR>" }, ---@type string|string[] | |
| 149 | + | |
| 150 | + reset_testcases = "r", ---@type string | |
| 151 | + use_testcase = "U", ---@type string | |
| 152 | + focus_testcases = "H", ---@type string | |
| 153 | + focus_result = "L", ---@type string | |
| 154 | + }, | |
| 145 | 155 | } |
| 146 | 156 | ``` |
| 147 | 157 |
+0-13lua/leetcode.lua
| @@ -18,19 +18,6 @@ end | ||
| 18 | 18 | function leetcode.setup_cmds() |
| 19 | 19 | local cmd = require("leetcode.command") |
| 20 | 20 | cmd.setup() |
| 21 | - | |
| 22 | - -- deprecate | |
| 23 | - local utils = require("leetcode.utils") | |
| 24 | - utils.deprecate_usr_cmd("LcConsole", "Leet console") | |
| 25 | - utils.deprecate_usr_cmd("LcHints", "Leet hints") | |
| 26 | - utils.deprecate_usr_cmd("LcMenu", "Leet") | |
| 27 | - utils.deprecate_usr_cmd("LcTabs", "Leet tabs") | |
| 28 | - utils.deprecate_usr_cmd("LcQuestionTabs", "Leet tabs") | |
| 29 | - utils.deprecate_usr_cmd("LcLanguage", "Leet lang") | |
| 30 | - utils.deprecate_usr_cmd("LcDescriptionToggle", "Leet desc toggle") | |
| 31 | - utils.deprecate_usr_cmd("LcRun", "Leet run") | |
| 32 | - utils.deprecate_usr_cmd("LcSubmit", "Leet submit") | |
| 33 | - utils.deprecate_usr_cmd("LcFix", "Leet fix") | |
| 34 | 21 | end |
| 35 | 22 | |
| 36 | 23 | function leetcode.validate() |
+2-4lua/leetcode/command/init.lua
| @@ -191,7 +191,7 @@ function cmd.info() | ||
| 191 | 191 | end |
| 192 | 192 | |
| 193 | 193 | function cmd.hints() |
| 194 | - cmd.deprecate("Leet hints", "Leet info") | |
| 194 | + -- cmd.deprecate("Leet hints", "Leet info") | |
| 195 | 195 | cmd.info() |
| 196 | 196 | end |
| 197 | 197 | |
| @@ -338,6 +338,7 @@ cmd.commands = { | ||
| 338 | 338 | menu = { cmd.menu }, |
| 339 | 339 | console = { cmd.console }, |
| 340 | 340 | info = { cmd.info }, |
| 341 | + hints = { cmd.hints }, | |
| 341 | 342 | tabs = { cmd.question_tabs }, |
| 342 | 343 | lang = { cmd.change_lang }, |
| 343 | 344 | run = { cmd.q_run }, |
| @@ -374,9 +375,6 @@ cmd.commands = { | ||
| 374 | 375 | cache = { |
| 375 | 376 | update = { cmd.cache_update }, |
| 376 | 377 | }, |
| 377 | - | |
| 378 | - ---@deprecated | |
| 379 | - hints = { cmd.hints }, | |
| 380 | 378 | } |
| 381 | 379 | |
| 382 | 380 | return cmd |