Skip to content

mavantgarderc/nvimXdotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvimXdotnet

Turn Neovim on Linux into a productive .NET IDE with:

  • C#, F#, VB.NET language server (OmniSharp)
  • IntelliSense, go to definition, rename, code actions
  • Inlay hints (parameter / chaining hints)
  • Formatting with CSharpier and optional dotnet format
  • Debugging via nvim-dap + netcoredbg
  • Test running via neotest-dotnet + dotnet test

This repo is a companion to:

It provides:

  • Docs on the architecture and setup
  • Config modules (Lua) you can copy into your own Neovim config
  • Cheatsheets for daily .NET + Neovim usage

Prerequisites


Quick start (high level)

  1. Install .NET SDK on Linux (see linuxXdotnet).
  2. Install Neovim via your distro.
  3. Add lazy.nvim to your config.
  4. Copy the modules from config/ into your Neovim config:
    • nvimx/lsp/shared.lua
    • nvimx/lsp/omnisharp.lua
    • nvimx/cmp/init.lua
    • nvimx/dap/dotnet.lua (for debugging)
    • nvimx/test/neotest-dotnet.lua (for tests)
  5. Add plugin specs from config/lua/plugins/*.lua into your lazy setup.

Then:

  • Open a .sln / *.csproj project
  • Confirm OmniSharp attached (:LspInfo)
  • Use LSP keymaps (<leader>gd, <leader>grn, <leader>ca, etc.)
  • Run tests (neotest) and debug (nvim-dap)

Repo layout

Path Purpose
cheats/ Short reference for day‑to‑day .NET + Neovim
config/ Example Neovim config modules (LSP, DAP, cmp)
docs/ Conceptual docs + setup guides

Detailed docs:

  • docs/01-intro.md – Overview and goals
  • docs/02-architecture-nvim-dotnet.md – How the pieces fit together
  • docs/03-setup-omnisharp-mason.md – OmniSharp with Mason + lazy.nvim
  • docs/04-formatting-and-csharpier.md – CSharpier + dotnet format
  • docs/05-debugging-dap-dotnet.md – Debugging with nvim-dap + netcoredbg
  • docs/06-testing-neotest-dotnet.md – Running tests with neotest-dotnet

Related projects


License

MIT (same as other *X* repos).

About

A General Guide to Setup .NET LSP for Nvim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages