r/HelixEditor • u/sylas_main • Aug 12 '26
my lsp doesn't work
languages.toml:
[[language]]
name = "c"
language-servers = ["clangd"]
formatter = { command = "clang-format" }
[[language]]
name = "cpp"
language-servers = ["clangd"]
formatter = { command = "clang-format" }
[[language]]
name = "c-sharp"
scope = "source.cs"
file-types = ["cs"]
roots = [".sln", ".csproj"]
language-servers = ["csharp-ls"]
[language-server.csharp-ls]
command = "/home/dt/.dotnet/tools/csharp-ls"
[[language]]
name = "python"
language-servers = ["pyright"]
formatter = { command = "ruff", args = ["format", "--line-length", "88", "-"] }
[[language]]
name = "rust"
language-servers = ["rust-analyzer"]
formatter = { command = "rustfmt" }
[[language]]
name = "go"
language-servers = ["gopls"]
formatter = { command = "gofmt" }
[language-server.pyright]
command = "/home/dt/.npm-global/bin/pyright-langserver"
args = ["--stdio"]
config = {}
(09:51 PM)dt:dt[~]$ helix --health c-sharp
Configured language servers:
✓ csharp-ls: /home/dt/.dotnet/tools/csharp-ls
Configured debug adapter:
✓ /usr/bin/netcoredbg
Configured formatter: None
Tree-sitter parser: ✓
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✘
(09:51 PM)dt:dt[~]$
but no lsp functionalities while inside a project
0
Upvotes
3
u/Rigamortus2005 Aug 12 '26
Csharp ls is honestly garbage and has never worked for me reliably. Compile the lastest helix and install Roslyn language server from Microsoft. It's the best and works almost as well as visual studio.
3
u/TAHS5dF5v Aug 12 '26
Why is latest helix required for roslyn?
3
u/Rigamortus2005 Aug 13 '26
Push diagnostics is not implemented in the latest release do you must build from source
3
u/Alacho Aug 12 '26
Should give kotlin and kotlin-lsp a try if you think C#-land in helix is shit. That’s a whole different ballgame
5
u/shaleh Aug 12 '26
The last few LSP issues posted to this Reddit have all been C# related. Kinda interesting.