On .NET Live - Exploring the Uncommon Path: Using Neovim for C# and the creation of Dumpify

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 48

  • @igorpom2
    @igorpom2 Год назад +16

    00:00 - _
    03:16 - Intro
    06:26 - Windows users and Vim
    12:00 - Vim (NeoVim) demo
    18:25 - LSP - Language Server Protocol
    20:50 - About vim extensions
    29:05 - Moaid Hathot NeoVim config
    31:00 - Dumpify
    43:08 - Vim, Git, fast search
    46:24 - Dumpify config
    49:15 - Vim and NeoVim
    57:13 - Outro

  • @edd6927
    @edd6927 Год назад +12

    This was great, I've been toying with the idea of using Neovim at work for dotnet for small things but didn't know where to start. One of my pain points with Visual Studio in corporate environments is how heavy and slow it is, Neovim in comparison is so light and blazing fast.

  • @maacpiash
    @maacpiash 11 месяцев назад +29

    Okay, we need a video showing step by step how to configure Neovim for C#/.NET development. This is quite amazing. I've been trying to get Neovim work with Omnisharp, but it hasn't been going very well.

    • @patrickcandlin7420
      @patrickcandlin7420 7 месяцев назад +2

      This

    • @boy_with_thorn
      @boy_with_thorn 6 месяцев назад +1

      Oh no, I thought this was the purpose of this video. 59 minutes and there are no instructions on the setup?

    • @rephaima
      @rephaima 3 месяца назад

      @@boy_with_thorn astro nvim and the community cs package is a good start I think

  • @tuliopaimm
    @tuliopaimm Год назад +8

    Learning vim motions can significantly boost productivity for developers, everyone should take a time to learn it. Great demo btw, instead of omnisharp, I'm using csharp-ls as LSP and it works well.

    • @sidaz22
      @sidaz22 Год назад

      why not omnisharp?

    • @tuliopaimm
      @tuliopaimm Год назад

      ​ @sidaz22 Never managed to make it work properly. Now I'm using jmederosalvarado/roslyn.nvim and it's the fastest out there, based on the new LSP for vscode

  • @will_1536
    @will_1536 Год назад +3

    Been struggling with setting up c# lsp, your dotfiles will be really helpful to get that working thanks!

  • @TurboBorsuk
    @TurboBorsuk Год назад +22

    My man made his Spouse nullable 😅

    • @moaidhathot
      @moaidhathot Год назад +3

      LOL

    • @notmike2901
      @notmike2901 Год назад +1

      bro was getting existential with it

    • @ibrahimhussain3248
      @ibrahimhussain3248 8 месяцев назад

      This is the best and most hilarious comment I have ever seen

  • @jsuarezdev
    @jsuarezdev 5 месяцев назад +1

    Amazing video, I use Neovim too. I love the simplicity.

  • @homosuperior1337
    @homosuperior1337 Год назад +7

    At my new company i'm forced to use c#. In the old days i had a lot of hate about microsoft. I hated the war against linux. So i left the windows world and went to the gentoo linux community. Later i switched to archlinux. I really loved ruby and sinatra. Now i'm back in the microsoft world and have to use c# and i really really love it. I love the new minimal api's. I love maui. And i'm sad that, visual studio will be discontinued on mac. I used nvim for a long time. Now i see, that it could be possible to use it with c#. Sound's fun. Please more about it.

    • @justanaveragebalkan
      @justanaveragebalkan Год назад

      rider exists, if you dont mind paying few bucks a month. Saves the vim headache, cause there is nothing like LSP deciding that Monday is a day off work,

    • @homosuperior1337
      @homosuperior1337 Год назад

      @@justanaveragebalkan i installed the trial of rider yesterday on my mac after a dotnet neovim distro produced a lot of errors which i don't had the will to study the cause of all this. And yeah, the vim hustle is a big pain point for me. Something in me feels a lot of resistance when it is about Software i have too pay yearly for.

  • @homosuperior1337
    @homosuperior1337 Год назад +1

    Damn, watching the stuff at minute 40 and i'm so happy, that neovim is so powerful in his windows environment. I'm so happy, that i can use c# with neovim 🙂

  • @AND1TFC
    @AND1TFC Год назад +2

    Thanks for the video, I'll finally be able to flex upon my workmates for using neovim 😼

  • @gregoryshields4258
    @gregoryshields4258 Год назад +1

    I'm interested. It has been a while since I was using Visual Studio heavily, so I'm curious to go back and see how NeoVim would compare to all the goodness of Visual Studio, VsVim, and ReSharper, among other plugins, NuGet packages, and Git integration. Certainly for things such as Maui/Xamarin and WPF there's no substitute for Visual Studio because of the XAML designer, but the lightweight nature of NeoVim has great allure since VIsual Studio takes a long time to load. Maybe NeoVim in combination with Expression Blend would be a good overall experience for doing WPF Windows apps.
    I'm also wondering whether I could write and execute C# using NeoVim on my iPad.

    • @moaidhathot
      @moaidhathot 10 месяцев назад

      I'm not a Mac user so I don't have experience with it, but you should be able to run Neovim and C# on your iPad :)
      Omnisharp, the LSP that I'm using is cross platform

  • @ja-rek8846
    @ja-rek8846 6 дней назад

    How did you open code actions in telescope?

  • @i_Amazin_
    @i_Amazin_ 10 месяцев назад +2

    Any suggestions for cshtml and razor files with nvim?

  • @TankaNafaka
    @TankaNafaka Год назад +3

    any chance to post a link with git repo of your vim config? Thx

    • @igorpom2
      @igorpom2 Год назад +1

      It is impossible to paste a link. I tried multiple times, but AI (or really angry admin) doesn't allow to type it. But in video you can find repo at 29:05

    • @igorpom2
      @igorpom2 Год назад

      Here is a link in the chat record next to the video player at 29:00

    • @moaidhathot
      @moaidhathot Год назад +2

      The repo was posted in the Live Chat around 32:00 in the video. RUclips is deleting comments with links.

  • @igorpom2
    @igorpom2 Год назад +4

    Thanks for the video. Vim is really great, but unfortunately it isn't support working with *.cshtml files (razor pages). And there is no solution explorer. This two things stops me to use is as my main tool. This is really my dream to have it into vim.

    • @moaidhathot
      @moaidhathot Год назад

      What functionality from `Solution Explorer` are you missing?

    • @igorpom2
      @igorpom2 Год назад

      @@moaidhathot thank you for the question!
      I work with a huge repository that includes many projects. These projects are sometimes closely related to each other. For example, different projects use a library to access the database. Lib contains domain models, converters, repositories, mappers etc. In Visual Studio or Rider I can easily open this library and search for the files I need, as well as create new ones if necessary.
      I've been working with Vim for about a week now and haven't found answers to the questions what I have in switching from Rider to NeoVim. May be I'll have more issues in the future.
      May be the answer is there - change my stack. LoL.
      :q

    • @moaidhathot
      @moaidhathot Год назад +1

      @@igorpom2 do you mean a some sort of tree-based file explorer? Or do you mean decompiling third-party libraries when you don't have their source?

    • @danielbergfrederiksen3731
      @danielbergfrederiksen3731 Год назад +1

      ^ this, because both are possible :)

  • @vasiliskarvelas5488
    @vasiliskarvelas5488 Год назад +1

    My complain is that SSMS doesn't have vim extension. 😢

  • @homosuperior1337
    @homosuperior1337 Год назад +2

    Oh i love it.

  • @DevJonathanRamos
    @DevJonathanRamos 4 месяца назад

    Why does he hates his keyboard? I jumped every time he smashed those keys.

  • @ml_serenity
    @ml_serenity 4 месяца назад

    Debugging, navigation by type names, finding usages, finding implementations, navigating to the base class, extracting methods, variables, and so on and so on... a lot of daily routine activities were not shown here... Too bad.

    • @moaidhathot
      @moaidhathot 4 месяца назад

      All of these features exists, except a non-built-in refactoring actions.

  • @health_doc
    @health_doc 6 месяцев назад

    Not sure how he can live without ctrl+t and searching capital letters. Semantic search... also works in referenced packages!

    • @moaidhathot
      @moaidhathot 4 месяца назад +1

      A similar options to ctrl+t exists with fuzzy search (Capital letters + more options than VS).
      Semantic Search and Type searching are not built-in by default, but can be added.

  • @justanaveragebalkan
    @justanaveragebalkan Год назад +2

    Yes space P D is so much faster than c-R or f12...
    It's effective yes, but lets not sell snake oil all ides can be made fast, some take lot more to setup than others, at the end of the day the result is the same.

  • @JuiceRabbit
    @JuiceRabbit Год назад

    So debugging sucks in Neovim? I'll stick with VSCode...

    • @ipwnjo
      @ipwnjo Год назад +8

      It is possible to debug with breakpoints, stepping and watches inside Neovim. But there isn't the full out of the box experience which VS might offer with the click of a button.

    • @shira158
      @shira158 Год назад

      does it has a Immediate Window equivalent where I can run code at breakpoint? @@ipwnjo

  • @tracetv8115
    @tracetv8115 4 месяца назад

    At some point he will notice that linux is the real deal.

  • @lufenmartofilia5804
    @lufenmartofilia5804 2 месяца назад

    Nice but not worth the effort imho.