leetcode.nvim icon indicating copy to clipboard operation
leetcode.nvim copied to clipboard

Can't open file with `NvimTree` when `LeetCode` is open.

Open bitorangej opened this issue 11 months ago • 2 comments

Hello, thank you for your contribution to this project. While using the leetcode plugin, I may have encountered an issue related to opening files. The specific situation is as follows:

First, I entered nvim leetcode.nvim in the terminal to open the LeetCode plugin page.

Image

Then, I used Ctrl+n (which is the shortcut I configured to open the NvimTree plugin) to open the NvimTree panel on the left.

Image

However, when I selected a file and pressed Enter, nothing happened, and the cursor automatically jumped to the LeetCode main page on the right. Could you please help me understand why this is happening?

Image

bitorangej avatar Feb 25 '25 05:02 bitorangej

Not the main guy who made this, but I can make a guess: I have a plugin called oil.nvim (~it's like NvimTree but better XD~) If I do Space+o I get this:

Image

If you fork the repo, you can try git grep winfixbuf:

Image I believe the creators don't want you to switch buffers, and since Leetcode questions are all individual problems, there isn't a good reason for switching to another file out of the blue.

If you want to continue doing say problem 2, you can go to Menu > Problems > List, then type 2. Hope this helps!

New9c avatar Mar 12 '25 07:03 New9c

Thanks for your reply. I will have a try!

bitorangej avatar Mar 12 '25 07:03 bitorangej