How can I make Kate's LSP Client work with C# projects?

I’d like to try using Kate for developing on Unity, only thing is I just can’t seem to figure out how to get the LSP Client to work with C# for things like auto-complete, go to definition etc. Every time when I open a script with Kate, I get this warning:

[14:20:46 LSP Client Warning] Failed to find server binary: OmniSharp

Please check your PATH for the binary

See also https://github.com/OmniSharp/omnisharp-roslyn for installation or details

Apparently I managed to download this OmniSharp thing, but when I try running it from the terminal, I get this:

{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Stdio.Host","Message":"Starting O
mniSharp on neon 24.4 (x64)"},"Seq":1,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Services.DotNetCliService","Messa
ge":"Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK"},"Seq":2,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Services.DotNetCliService","Messa
ge":"Using the 'dotnet' on the PATH."},"Seq":3,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Services.DotNetCliService","Messa
ge":"DotNetPath set to dotnet"},"Seq":4,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator"
,"Message":"Located 0 MSBuild instance(s)"},"Seq":5,"Type":"event"}
Could not locate MSBuild instance to register with OmniSharp.

And apparently I managed to install MSBuild through dotnet-sdk and made a shell script pointing to it. In fact, it works when I write msbuild -version on the terminal, but omnisharp still can’t find it for some reason.

I’ve been running around for over a day now, trying to solve this issue, I really need some help :frowning: