@@ -377,6 +377,60 @@ with lib; let
377
377
} ;
378
378
} ;
379
379
}
380
+ {
381
+ name = "omnisharp" ;
382
+ description = "Enable omnisharp language server, for C#" ;
383
+ package = pkgs . omnisharp-roslyn ;
384
+ cmd = cfg : [ "${ cfg . package } /bin/OmniSharp" ] ;
385
+ settings = cfg : { omnisharp = cfg ; } ;
386
+ settingsOptions = {
387
+ enableEditorConfigSupport = helpers . defaultNullOpts . mkBool true ''
388
+ Enables support for reading code style, naming convention and analyzer settings from
389
+ `.editorconfig`.
390
+ '' ;
391
+
392
+ enableMsBuildLoadProjectsOnDemand = helpers . defaultNullOpts . mkBool false ''
393
+ If true, MSBuild project system will only load projects for files that were opened in the
394
+ editor.
395
+ This setting is useful for big C# codebases and allows for faster initialization of code
396
+ navigation features only for projects that are relevant to code that is being edited.
397
+ With this setting enabled OmniSharp may load fewer projects and may thus display
398
+ incomplete reference lists for symbols.
399
+ '' ;
400
+
401
+ enableRoslynAnalyzers = helpers . defaultNullOpts . mkBool false ''
402
+ If true, MSBuild project system will only load projects for files that were opened in the
403
+ editor.
404
+ This setting is useful for big C# codebases and allows for faster initialization of code
405
+ navigation features only for projects that are relevant to code that is being edited.
406
+ With this setting enabled OmniSharp may load fewer projects and may thus display
407
+ incomplete reference lists for symbols.
408
+ '' ;
409
+
410
+ organizeImportsOnFormat = helpers . defaultNullOpts . mkBool false ''
411
+ Specifies whether 'using' directives should be grouped and sorted during document
412
+ formatting.
413
+ '' ;
414
+
415
+ enableImportCompletion = helpers . defaultNullOpts . mkBool false ''
416
+ Enables support for showing unimported types and unimported extension methods in
417
+ completion lists.
418
+ When committed, the appropriate using directive will be added at the top of the current
419
+ file.
420
+ This option can have a negative impact on initial completion responsiveness, particularly
421
+ for the first few completion sessions after opening a solution.
422
+ '' ;
423
+
424
+ sdkIncludePrereleases = helpers . defaultNullOpts . mkBool true ''
425
+ Specifies whether to include preview versions of the .NET SDK when determining which
426
+ version to use for project loading.
427
+ '' ;
428
+
429
+ analyzeOpenDocumentsOnly = helpers . defaultNullOpts . mkBool true ''
430
+ Only run analyzers against open files when 'enableRoslynAnalyzers' is true.
431
+ '' ;
432
+ } ;
433
+ }
380
434
{
381
435
name = "pylsp" ;
382
436
description = "Enable pylsp, for Python." ;
0 commit comments