@@ -354,6 +354,24 @@ Use this option to enable syntastic integration >
354
354
-------------------------------------------------------------------------------
355
355
3.7 MISCELLANEOUS *omnisharp-miscellaneous-options*
356
356
357
+ *g:OmniSharp_fold_kinds*
358
+ The "kinds" of elements to fold with |:OmniSharpFold|. Possible values are:
359
+
360
+ // types
361
+ class, delegate, enum, interface, struct
362
+
363
+ // members
364
+ constant, constructor, destructor, enumMember, event, field, indexer,
365
+ method, operator, property
366
+
367
+ // other
368
+ namespace, unknown
369
+
370
+ An empty list means that _all_ kinds should be folded, when they span a range
371
+ greater than 'foldminlines'.
372
+ Default: [] >
373
+ let g:OmniSharp_fold_kinds = ['method', 'constructor', 'destructor']
374
+ <
357
375
*g:OmniSharp_lookup_metadata*
358
376
When using `OmniSharpGotoDefinition` and `OmniSharpPreviewDefinition`,
359
377
fall back to looking up metadata for compiled types.
@@ -447,6 +465,13 @@ convenient user re-mapping. These can be used like so: >
447
465
:OmniSharpFixUsings
448
466
Removes unused using directives
449
467
468
+ *:OmniSharpFold*
469
+ *<Plug>(omnisharp_fold)*
470
+ :OmniSharpFold
471
+ Create folds around code structure elements such as methods and classes.
472
+ Folds are only created for elements spanning over 'foldminlines' lines.
473
+ The kinds of elements to fold can be configured with |g:OmniSharp_fold_kinds|
474
+
450
475
*:OmniSharpTypeLookup*
451
476
*<Plug>(omnisharp_type_lookup)*
452
477
:OmniSharpTypeLookup
0 commit comments