C# (csharp)

Install Syntax Highlighting

:TSInstall c_sharp
1

Install Language Server

:LspInstall csharp
1

Formatters

The csharp language server OmniSharp supports formatting. Formatting is automatically enabled by installing the csharp language server. The formatting options can be changed by with the OmniSharp configuration optionsopen in new window.

clang-formatopen in new window can optionally be used as a C# formatter. After installing the clang-format the formatter is enabled with configuration. OmniSharp formatter is then automatically disabled.

lvim.lang.cs.formatters = { { exe = "clang_format" } }
1