kawre / leetcode.nvim

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

leetcode.nvim Not Working in NVChad #91

Open bupd opened 2 months ago

bupd commented 2 months ago

Description: I've recently tried to set up leetcode.nvim in my nvchad environment following the instructions provided in the README file. However, I'm encountering issues and unable to get it working properly. Here are the details:

Steps to Reproduce:

Followed the installation instructions in the README file for integrating leetcode.nvim into my nvchad environment. Enabled the necessary configurations as per the instructions. Opened nvim and attempted to use the leetcode plugin.

nvim leetcode.nvim

Expected Behavior:

I expected leetcode.nvim to work seamlessly within my nvchad environment, allowing me to access and solve LeetCode problems directly from within nvim. I expected nvim leetcode.nvim to open the leetcode.nvim plugin, not a file named leetcode.nvim.

Actual Behavior:

However, When I try to open leetcode.nvim using

nvim leetcode.nvim

it opens a file named leetcode.nvim instead of launching the leetcode.nvim plugin.

Additional Information:

Version of neovim: v9.0 Version of nvchad: v2.0 Operating System: Arch Linux.

I would appreciate any assistance or guidance on resolving this issue. Thank you!

bupd commented 2 months ago

This is how I added it to My config File.

nvim Issue

kawre commented 2 months ago

Maybe you have lazy loading enabled by default. If yes, then you have to add lazy = false to leetcode.nvim

braveltd commented 2 months ago

I had the same problem, solved it by setting lazy = false

bupd commented 2 months ago

Maybe you have lazy loading enabled by default. If yes, then you have to add lazy = false to leetcode.nvim

It works Now and thanks to both.

Can we add this point in the readme. So that it helps newcomers.