kawre / leetcode.nvim

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

Indentation of Python code changes upon submission #2

Closed WilsonOh closed 9 months ago

WilsonOh commented 9 months ago

Hi, I really love this project, but I ran into this bug where the indentation of my Python code became malformed upon submission through the LcConsole, which results in a wrong submission.

$ nvim --version
NVIM v0.10.0-dev-528+g1f8fb7c00
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

lazy.nvim config:

return {
  "kawre/leetcode.nvim",
  event = "VeryLazy",
  config = true,
}

Here's how the code looks like in neovim:

image

Submission error:

image

How the submitted code looks like:

image
kawre commented 9 months ago

My bad. Should be working now