Sovling leetcode question in neovim, based on leetcode-cli
The showcase update is not timely
- Neovim 0.9.1 or later
- leetcode-cli is installed and log in
npm -g install leetcode-tools/leetcode-cli
You can install leetcode-nvim
with lazy.nvim
{
"thenicealex/leetcode-nvim",
cmd = {"LCode"},
opts = {},
dependencies = {"nvim-telescope/telescope.nvim"}
config = function (_, opts)
require("leetcode").set(opts)
end
}
{
domin = "cn",
language = "cpp",
directory = "~/.leetcode",
}
:LCode list -- To list all questions
:LCode test -- To test question
:LCode submit -- To submit question