Skip to content

Cannot list leetcode problems #78

Description

@gur-sin

I followed the instructions in the readme, signed in to firefox (which worked fine), and added the necessary config options. However when I try to list the problems, I have a list index out of range error. I've tried both the remap and the :LeetCodeList command but get the same error regardless

image

I'm using neovim (v0.11.0-dev) on Pop!OS 22.04 LTS with a lua init file instead of vimscript. I made sure to not make any syntax errors that I could notice but i'm uploading the configuration here if in case I am just that stupid. If so, please let me know lol.

init.lua:

-- Leetcode
Plug('ianding1/leetcode.vim')

vim.keymap.set("n", "<leader>ll", ":LeetCodeList<CR>'")
vim.keymap.set("n", "<leader>lt", ":LeetCodeTest<CR>'")
vim.keymap.set("n", "<leader>ls", ":LeetCodeSubmit<CR>'")
vim.keymap.set("n", "<leader>li", ":LeetCodeSignIn<CR>'")

vim.g.leetcode_browser = 'firefox'
vim.g.leetcode_solution_filetype = 'python3'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions