kawre / leetcode.nvim

A Neovim plugin enabling you to solve LeetCode problems.
MIT License
655 stars 34 forks source link

How to reset questions easily #61

Closed Penguin-SAMA closed 4 months ago

Penguin-SAMA commented 4 months ago

I want to be able to easily reset submitted questions to the initial template. How should I do this?

kawre commented 4 months ago

You could either remove the folder under storage.home which is :lua print(vim.fn.stdpath("data") .. "/leetcode") by default or rename to something else, if you want to keep old solutions.

Or maybe you want a cmd to only reset the currently opened question?

Penguin-SAMA commented 4 months ago

Or maybe you want a cmd to only reset the currently opened question?

yes, i want this.

kawre commented 4 months ago

Thanks for the idea, It's merged additionally with Leet last_submit for retrieving latest submitted code