Dhanus3133 / Leetbuddy.nvim

Solve Leetcode problems within Neovim 🔥
MIT License
139 stars 15 forks source link

LBQuestions not work after reinstall #23

Closed heaMan22 closed 11 months ago

heaMan22 commented 11 months ago

After reinstalling the plugin, :LBQuestions does not work, and the input will report an error:

E5108: Error executing lua: ...are/nvim/lazy/LeetBuddy.nvim/lua/leetbuddy/questions.lua:129: attempt to index local 'problem' (a nil value)
stack traceback:
    ...are/nvim/lazy/LeetBuddy.nvim/lua/leetbuddy/questions.lua:129: in function 'key_func'
    ...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:257: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:256>
Dhanus3133 commented 11 months ago

You have clicked enter too early before even the problem is displayed. Try selecting the problem after it is displayed.

heaMan22 commented 11 months ago
  1. logged in leetcode.cn
  2. input :LBQuestions
  3. however, no problem is displayed in telescope window

finally, the problem solved by resetting the latest commit(98d8e5d) to d73fa0a

$ cd ~/.local/share/nvim/lazy/LeetBuddy.nvim
$ git reset --hard d73fa0a
Dhanus3133 commented 11 months ago

Fixed the issue!