user16716191
user16716191

Reputation:

Have Omnisharp-vim work with .razor files

Can you have Omnisharp-vim work with .razor files? I.e. the @code bits. I've managed to get syntax highlighting on the rest of it by doing :setf html but how do you get C# intellisense on the rest of it? I'm using neovim on Ubuntu WSL.

Upvotes: 1

Views: 1874

Answers (2)

dave
dave

Reputation: 15

For syntax highlighting, you can use vim-razor.

As of now, I don't think there are any plugins that provide omnicompletion for razor. rzls.nvim comes close but it isn't finished yet. It aims to bring the Razor Language Server (rzls), used by the vscode extension, to nvim.

Upvotes: 0

CharaD7
CharaD7

Reputation: 11

You should consider adding this vim-polygot plugin. It worked for me and is superfast. Let me know whether or not it helps.

Upvotes: 1

Related Questions