A Neovim plugin enabling you to solve LeetCode problems.
45 commits
Clone ▾
| 13 B | |
| 187 B | |
| 174 B | |
| 2.5 KB |
README.md
leetcode.nvim
Solve LeetCode problems within Neovim
✨ Features
-
📈 LeetCode statistics withing neovim (Soon)
-
🔀 Support for daily and random questions
-
💾 Problem list caching
📬 Dependencies
-
nvim-treesitter: html parser
-
telescope.nvim: pickers
-
nui.nvim: ui provider
-
nvim-notify: notifications provider
📦 Installation
-
{ "kawre/leetcode.nvim", build = ":TSUpdate html", dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-telescope/telescope.nvim", "MunifTanjim/nui.nvim", -- optional dependencies "rcarriga/nvim-notify", "nvim-tree/nvim-web-devicons", }, opts = { -- configuration goes here }, }
{
---@type string
domain = "com",
---@type string
arg = "leetcode.nvim",
---@type string
lang = "java",
---@type
---| "pythondata"
---| "mysql"
---| "mssql"
---| "oraclesql"
sql = "mysql",
---@type string
directory = vim.fn.stdpath("data") .. "/leetcode/",
---@type boolean
logging = true,
menu_tabpage = 1,
questions_tabpage = 2,
console = {
size = {
width = "75%", ---@type string | integer
height = "75%", ---@type string | integer
},
dir = "row", ---@type "col" | "row"
result = {
max_stdout_length = 200,
},
},
description = {
width = "40%", ---@type string | integer
},
}
🚀 Usage
This plugin is meant to be used within a fresh neovim instance.
Meaning that to lauch leetcode.nvim you have to pass arg as the neovim argument
nvim leetcode.nvim
Sign In
It is required to be signed-in to use leetcode.nvim