A Neovim plugin enabling you to solve LeetCode problems.
feat(docs): FAQ section
2 files changed, +29 -9
+28-8README.md
| @@ -436,22 +436,42 @@ This plugin can be initiated in two ways: | ||
| 436 | 436 | must not have any listed buffers open. |
| 437 | 437 | To bypass this requirement use [`non_standalone`](#non-standalone-mode) plugin. |
| 438 | 438 | |
| 439 | +### Sign In | |
| 440 | + | |
| 441 | +> [!WARNING] | |
| 442 | +> Be sure to copy the `Cookie` from request headers, not the `set-cookie` from | |
| 443 | +> response headers. | |
| 444 | + | |
| 445 | +> [!WARNING] | |
| 446 | +> If you are using **brave browser**, see [this | |
| 447 | +> issue](https://github.com/kawre/leetcode.nvim/issues/160#issuecomment-2619611920) | |
| 448 | + | |
| 449 | +https://github.com/kawre/leetcode.nvim/assets/69250723/b7be8b95-5e2c-4153-8845-4ad3abeda5c3 | |
| 450 | + | |
| 451 | +## ❓ FAQ | |
| 452 | + | |
| 453 | +### I keep getting `cookie expired` error | |
| 454 | + | |
| 455 | +If you keep getting `Your cookie may have expired, or LeetCode has temporarily | |
| 456 | +restricted API access`, it most likely means that LeetCode website is under | |
| 457 | +heavy load and is restricting API access (mostly during contests). | |
| 458 | + | |
| 459 | +All you can do is wait it out, try disabling a VPN if you’re using one, and if | |
| 460 | +the problem is persistent, open an issue. | |
| 461 | + | |
| 439 | 462 | ### Switching between test cases |
| 440 | 463 | |
| 441 | -To switch between test cases, press the number of the test case | |
| 442 | -`1` for Case (1), `2` for Case (2), etc | |
| 464 | +To switch between test cases, just press the number of the corresponding case: | |
| 465 | +`1` for `Case (1)`, `2` for `Case (2)`, and so on. | |
| 443 | 466 | |
| 444 | 467 | ### Switching between questions |
| 445 | 468 | |
| 446 | 469 | To switch between questions, use `Leet tabs` |
| 447 | 470 | |
| 448 | -### Sign In | |
| 449 | - | |
| 450 | -> [!WARNING] | |
| 451 | -> Be sure to copy the `Cookie` from request headers, not the `set-cookie` from | |
| 452 | -> response headers. | |
| 471 | +### I'm not getting LSP completions | |
| 453 | 472 | |
| 454 | -https://github.com/kawre/leetcode.nvim/assets/69250723/b7be8b95-5e2c-4153-8845-4ad3abeda5c3 | |
| 473 | +Some languages require additional setup to get LSP completions. | |
| 474 | +For example, Rust needs extra configuration — see [this issue](https://github.com/kawre/leetcode.nvim/issues/86). | |
| 455 | 475 | |
| 456 | 476 | ## 🍴 Recipes |
| 457 | 477 |
+1-1lua/leetcode-ui/renderer/init.lua
| @@ -89,7 +89,7 @@ function Renderer:map(mode, key, handler, opts) -- | ||
| 89 | 89 | if clearable then |
| 90 | 90 | self._.keymaps[key] = mode |
| 91 | 91 | end |
| 92 | - vim.keymap.set(mode, key, handler, options) | |
| 92 | + | |
| 93 | 93 | vim.keymap.set(mode, key, handler, options) |
| 94 | 94 | end |
| 95 | 95 | end |