plugins.lsp.servers.omnisharp.settings

The settings for this LSP.

Type: attribute set of anything

Default: { }

Example:

{
  callback = {
    __raw = ''
      function()
        print('nixvim')
      end
    '';
  };
  foo_bar = 42;
  hostname = "localhost:8080";
}

Declared by:

plugins.lsp.servers.omnisharp.settings.enableEditorConfigSupport

Enables support for reading code style, naming convention and analyzer settings from .editorconfig.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.omnisharp.settings.enableImportCompletion

Enables support for showing unimported types and unimported extension methods in completion lists. When committed, the appropriate using directive will be added at the top of the current file. This option can have a negative impact on initial completion responsiveness, particularly for the first few completion sessions after opening a solution.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.omnisharp.settings.enableMsBuildLoadProjectsOnDemand

If true, MSBuild project system will only load projects for files that were opened in the editor. This setting is useful for big C# codebases and allows for faster initialization of code navigation features only for projects that are relevant to code that is being edited. With this setting enabled OmniSharp may load fewer projects and may thus display incomplete reference lists for symbols.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.omnisharp.settings.enableRoslynAnalyzers

If true, MSBuild project system will only load projects for files that were opened in the editor. This setting is useful for big C# codebases and allows for faster initialization of code navigation features only for projects that are relevant to code that is being edited. With this setting enabled OmniSharp may load fewer projects and may thus display incomplete reference lists for symbols.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.omnisharp.settings.analyzeOpenDocumentsOnly

Only run analyzers against open files when ‘enableRoslynAnalyzers’ is true.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.omnisharp.settings.organizeImportsOnFormat

Specifies whether ‘using’ directives should be grouped and sorted during document formatting.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.lsp.servers.omnisharp.settings.sdkIncludePrereleases

Specifies whether to include preview versions of the .NET SDK when determining which version to use for project loading.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by: