Dhanus3133 / Leetbuddy.nvim

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

LSP support #33

Closed andy-bell101 closed 11 months ago

andy-bell101 commented 11 months ago

I've been working on this for my personal use with Rust. It was bugging me that LSP wasn't working so I've included my edits that allowed me to get it working. I've set it up so that users can override language specific behaviours from their config. I've only sorted out LSP support in Rust, but I think the interface should be good enough to let you enable any LSP for any language

Dhanus3133 commented 11 months ago

So, there is a way to enable the rust LSP in a standalone file using :RustStartStandaloneServerForBuffer if you're using rust-tools.nvim. Maybe I can make some changes so it invokes automatically when the rust file is opened to solve a problem.

andy-bell101 commented 11 months ago

Well I wish I knew about that before I'd done all this. Oh well