Dhanus3133 / Leetbuddy.nvim

Solve Leetcode problems within Neovim 🔥
MIT License
139 stars 15 forks source link

LSP doesn't work for Rust #34

Open RougeEtoile opened 9 months ago

RougeEtoile commented 9 months ago

If you change language to Rust, then LSP features don't work. I'm using basically the default install of LazyVim with Rust-tools. LSP info says that rust-analyzer is attached to the buffer. I believe that the lsp doesn't know it should be running on the file because the file isn't in the module tree its looking at. It needs a mod.rs or main.rs additionally the file are written with dashes as a separator and rust won't like that either. Additionally execution hangs after attempting to submit code

Dhanus3133 commented 9 months ago

https://github.com/Dhanus3133/Leetbuddy.nvim/pull/33#issuecomment-1788901829

Will fix this soon, maybe if you're interested create a PR :)