Skip to content

Solve Leetcode problems within Neovim, based leetcode-cli

Notifications You must be signed in to change notification settings

thenicealex/leetcode-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-nvim

Sovling leetcode question in neovim, based on leetcode-cli

Showcase

The showcase update is not timely

Images (Click to expand!)

List Questions

List questions

Test Question

Test question

Submit Question

Submit question

Quickstart

Requirements

  • Neovim 0.9.1 or later
  • leetcode-cli is installed and log in
npm -g install leetcode-tools/leetcode-cli

Installation

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
}

Default config

{
  domin = "cn",
  language = "cpp",
  directory = "~/.leetcode",
}

Commands

:LCode list     -- To list all questions
:LCode test     -- To test question
:LCode submit   -- To submit question

Welcome to submit Issues and PR

About

Solve Leetcode problems within Neovim, based leetcode-cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages