Skip to content

.NET Neovim plugin for improving the .NET dev experience in Neovim, written completely in Lua

License

Notifications You must be signed in to change notification settings

MoaidHathot/dotnet.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotnet.nvim

A little Neovim plugin for improving the .NET dev experience in Neovim, written completely in Lua

dotnet.nvim.Demo.mp4

Features

  • Cross Platform (Windows, Linux, MacOS)
  • Add/Remove Nuget Windows
  • Add/Remove Project Reference Windows
  • Add new projects/sln/globaljson/any installed dotnet template
  • Bootstrap a new cs file with a class

Dependencies

Installation

{
    'MoaidHathot/dotnet.nvim',
        cmd = "DotnetUI",
        opts = {},
}
use {
    'MoaidHathot/dotnet.nvim',
        config = function()
            require("dotnet").setup({})
        end
}

Configuration

dotnet.nvim comes with the following defaults:

{
  bootstrap = {
    auto_bootstrap = true, -- Automatically call "bootstrap" when creating a new file, adding a namespace and a class to the files
  },
  project_selection = {
    path_display = 'filename_first' -- Determines how file paths are displayed. All of Telescope's path_display options are supported
  }
}

Telescope's valid path_display. The options may vary depending on the version of Telescope you have installed.

Usage

  • Adding new item (Project/globaljson/sln, any template you have installed)
:DotnetUI new_item
  • Bootstrapping a new cs file
:DotnetUI file bootstrap
  • Adding a Nuget package
:DotnetUI project package add
  • Removing a Nuget package
:DotnetUI project package remove
  • Adding a project reference
:DotnetUI project reference add
  • Removing a project reference
:DotnetUI project reference remove

image

image

image