© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2mo ago•
7 replies
Carlos Saraiva

Anybody using the new roslyn lsp update in neovim?

beginnerideroslyn
Hi guys, I'm new to neovim and I'm trying to setup a good environment to have a nice experience programming with .NET.
When I open a
.cs
.cs
file it works fine, as it used to, but when I open a razor file, the LSP does not recognize it and I just have white text without autocompletion or anything. I'm using only the Lazy plugin manager, not LazyVim. If I open a razor file first and run
checkhealth vim.lsp
checkhealth vim.lsp
there is no LSP attached, if I open a
.cs
.cs
file and run the same command I have:

vim.lsp: Active Clients ~
- roslyn (id: 1)
  - Version: ? (no serverInfo.version response)
  - Root directory: /mnt/d/my-projects/learning/Testing
  - Command: { "roslyn", "--stdio", "--logLevel=Information", "--extensionLogDirectory=/home/saraivinha/.local/state/nvim", "--razorSourceGenerator=/home/saraivinha/.local/share/nvim/mason/packages/roslyn/libexec/.razorExtension/Microsoft.CodeAnalysis.Razor.Compiler.dll", "--razorDesignTimePath=/home/saraivinha/.local/share/nvim/mason/packages/roslyn/libexec/.razorExtension/Targets/Microsoft.NET.Sdk.Razor.DesignTime.targets", "--extension=/home/saraivinha/.local/share/nvim/mason/packages/roslyn/libexec/.razorExtension/Microsoft.VisualStudioCode.RazorExtension.dll" }
  - Settings: {}
  - Attached buffers: 24
vim.lsp: Active Clients ~
- roslyn (id: 1)
  - Version: ? (no serverInfo.version response)
  - Root directory: /mnt/d/my-projects/learning/Testing
  - Command: { "roslyn", "--stdio", "--logLevel=Information", "--extensionLogDirectory=/home/saraivinha/.local/state/nvim", "--razorSourceGenerator=/home/saraivinha/.local/share/nvim/mason/packages/roslyn/libexec/.razorExtension/Microsoft.CodeAnalysis.Razor.Compiler.dll", "--razorDesignTimePath=/home/saraivinha/.local/share/nvim/mason/packages/roslyn/libexec/.razorExtension/Targets/Microsoft.NET.Sdk.Razor.DesignTime.targets", "--extension=/home/saraivinha/.local/share/nvim/mason/packages/roslyn/libexec/.razorExtension/Microsoft.VisualStudioCode.RazorExtension.dll" }
  - Settings: {}
  - Attached buffers: 24

And after opening a
.cs
.cs
file and executing
checkhealth roslyn
checkhealth roslyn
, here is what I get:

==============================================================================
roslyn:                                                                     ✅

roslyn.nvim: Requirements ~
- ✅ OK Neovim >= 0.11
- ✅ OK dotnet: found

roslyn.nvim: Roslyn Language Server ~
- ✅ OK /home/saraivinha/.local/share/nvim/mason/bin/roslyn: found

roslyn.nvim: File Watching Configuration ~
- File watching: auto (using Neovim's file watcher)

roslyn.nvim: Solution Detection ~
- No solution selected
==============================================================================
roslyn:                                                                     ✅

roslyn.nvim: Requirements ~
- ✅ OK Neovim >= 0.11
- ✅ OK dotnet: found

roslyn.nvim: Roslyn Language Server ~
- ✅ OK /home/saraivinha/.local/share/nvim/mason/bin/roslyn: found

roslyn.nvim: File Watching Configuration ~
- File watching: auto (using Neovim's file watcher)

roslyn.nvim: Solution Detection ~
- No solution selected

Thanks guys!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

✅ Using Roslyn language server with Neovim lspconfig
C#CC# / help
2y ago
❔ CSharpCompilation using Roslyn
C#CC# / help
3y ago
Using Roslyn in WebAssembly, error creating an AdHocWorkspace
C#CC# / help
2y ago
✅ Neovim Config
C#CC# / help
3mo ago