irongit

A Neovim plugin enabling you to solve LeetCode problems.

feat(docs): FAQ section

kawreauthored
parent 422b6becommit 10f63d67201f6e988467485e6cf32d08176fcad2Browse files

2 files changed, +29 -9

+28-8README.md
@@ -436,22 +436,42 @@ This plugin can be initiated in two ways:
436436 must not have any listed buffers open.
437437 To bypass this requirement use [`non_standalone`](#non-standalone-mode) plugin.
438438
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+
439462 ### Switching between test cases
440463
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.
443466
444467 ### Switching between questions
445468
446469 To switch between questions, use `Leet tabs`
447470
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
453472
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).
455475
456476 ## 🍴 Recipes
457477
+1-1lua/leetcode-ui/renderer/init.lua
@@ -89,7 +89,7 @@ function Renderer:map(mode, key, handler, opts) --
8989 if clearable then
9090 self._.keymaps[key] = mode
9191 end
92- vim.keymap.set(mode, key, handler, options)
92+
9393 vim.keymap.set(mode, key, handler, options)
9494 end
9595 end