irongit

A Neovim plugin enabling you to solve LeetCode problems.

fix: disable sort for `Leet tabs`

kawreauthored
parent 7bd3e3dcommit e73c1fe61f5335265a085addba574978154a00d5Browse files

1 file changed, +5 -5

+5-5lua/leetcode/pickers/question-tabs.lua
@@ -82,11 +82,11 @@ return {
8282 return log.warn("No questions opened")
8383 end
8484
85- table.sort(tabs, function(q1, q2)
86- local fid1, fid2 =
87- tonumber(q1.question.q.frontend_id), tonumber(q2.question.q.frontend_id)
88- return (fid1 and fid2) and fid1 < fid2 or fid1 ~= nil
89- end)
85+ -- table.sort(tabs, function(q1, q2)
86+ -- local fid1, fid2 =
87+ -- tonumber(q1.question.q.frontend_id), tonumber(q2.question.q.frontend_id)
88+ -- return (fid1 and fid2) and fid1 < fid2 or fid1 ~= nil
89+ -- end)
9090
9191 pickers
9292 .new(opts, {