We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a8b53 commit ab27671Copy full SHA for ab27671
lua/leetcode/api/utils.lua
@@ -151,7 +151,7 @@ function utils.check_err(err)
151
end
152
153
if err.status then
154
- if err.status == 401 or err.status == 403 then
+ if (err.status == 401 or err.status == 403) and config.user.show_menu_when_expire then
155
require("leetcode.command").expire()
156
err.msg = "Session expired? Enter a new cookie to keep using `leetcode.nvim`"
157
lua/leetcode/config/template.lua
@@ -127,6 +127,9 @@ local M = {
127
128
---@type boolean
129
image_support = false,
130
+
131
+ ---@type boolean
132
+ show_menu_when_expire = false,
133
}
134
135
return M
0 commit comments