LSP install and configure

How to install and configure an LSP for C with WSL? I’ve been struggling to do this for days

Hey there,

@BNG

Have you tried building it with clang?

sudo apt-get update
sudo apt-get install clangd

It’s pretty late here, but I’ll check back in a few hours. Feel free to ping me on Discord (@kleosr, same as my forum handle) if you need more help!

Best,
kleosr

1 Like

No, that’s pretty obvious, but I want the LSP for my IDE, my terminal has it already

Hey there @BNG

Have you tried setting WSL as the default profile in Cursor? Set it to wsl.exe or create a default path to it Also, grab the C/C++ then, in Settings > Extensions > C/C++, enable the “IntelliSense Engine” to clangd.