nvim-unity icon indicating copy to clipboard operation
nvim-unity copied to clipboard

Omnisharp LSP setup errors with deprecated lspconfig and undefined nvlsp

Open sicamocisk opened this issue 1 year ago • 5 comments

Description

I'm trying to set up Omnisharp for C# using the following configuration, but encountering an error

Image

Current Configuration

Image

Questions

What is the nvlsp variable supposed to be? It appears to be undefined in my configuration. Should I be importing this from somewhere or defining it myself?

Environment

NVIM v0.11.4 Build type: Release LuaJIT 2.1.1741730670

Windows 10 Pro 22H2

Other

I'm a new vimmer and I'm trying to set up Omnisharp for C# . I would appreciate detailed guidance as I'm still learning.

sicamocisk avatar Oct 23 '25 10:10 sicamocisk

As you are using nvchad its simply require("nvchad.configs.lspconfig").defaults()

You can see my config ! its likely that you are using an older base configuration.

You can take a look at my config ->

https://github.com/SaladinAyyub/dotfiles/tree/main/.config/nvim

This issue is not related to the nvim-unity repo. I think it should be asked in nvchad discussions or discord @sicamocisk all tho feel free to reach me out.

Saladin1812 avatar Oct 24 '25 00:10 Saladin1812

Thanks for the reply, but I'm sorry that I have a hard time using discord due to geographical reasons After I learned a little about nvchad, my LSP service works fine in the Unity project, but now I don't understand how Unity connects to NVIM If you can see the video, you can see that after I click on the .cs file, the taskbar opens the cmd and it disappears immediately, and there is no other information, which makes me wonder

https://github.com/user-attachments/assets/5c291868-d33c-434d-80a3-5c31f529e4cd

sicamocisk avatar Oct 25 '25 02:10 sicamocisk

Do I need to do any more configuration in Unity or nvim?

sicamocisk avatar Oct 25 '25 02:10 sicamocisk

Do I need to do any more configuration in Unity or nvim?

Maybe my blogpost can help you -> https://blog.saladin.pro/unity-neovim-setup-ft-nix

Saladin1812 avatar Oct 25 '25 12:10 Saladin1812

As it seams to not be an issue with nvim-unity but with lsp configuration, i'm closing this issue.

apyra avatar Oct 27 '25 13:10 apyra