LSP with omnisharp: need to restart neovim when adding new flies

I’ve been using nvim with LSP/omnisharp for c# with unity for a while, and it works pretty great. There is only one thing that is somewhat annoying and that I was not able to fix so far. Whenever I add a new file to the project I need to exit neovim and open it again. If I just use ‘:LspReload’ it does not work at all… if it did it would not be too bad for my work flow.

Anyone has an Idea how to go about fixing this? I’m not really sure if its just how nvim/lsp works, if its a bug in lsp-config, or maybe a problem with the omnisharp-roslyn server.


There’s an open issue about this Omnisharp: Intellisense broken in Unity project when creating or renaming files · Issue #14042 · neovim/neovim · GitHub