Skip to content

Commit

Permalink
Add new linters and options from fsautocomplete
Browse files Browse the repository at this point in the history
Options taken from ionide/FsAutoComplete project, specifically
src/FsAutoComplete/LspHelpers.fs:
- names from `FSharpConfigDto`
- default values from `FSharpConfig.Default`

Brought over all that were primitives or primitive collections and
included commented TODO items for non-primitive options.

 implements #79
  • Loading branch information
greggyb committed May 21, 2024
1 parent 8e6004a commit b58c5b5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions autoload/fsharp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -163,26 +163,48 @@ let s:config_keys_camel =
\ {'key': 'ExcludeProjectDirectories', 'default': []},
\ {'key': 'keywordsAutocomplete', 'default': 1},
\ {'key': 'ExternalAutocomplete', 'default': 0},
\ {'key': 'FullNameExternalAutocomplete', 'default': 0},
\ {'key': 'Linter', 'default': 1},
\ {'key': 'LinterConfig'},
\ {'key': 'IndentationSize', 'default': 4},
\ {'key': 'UnionCaseStubGeneration', 'default': 1},
\ {'key': 'UnionCaseStubGenerationBody'},
\ {'key': 'RecordStubGeneration', 'default': 1},
\ {'key': 'RecordStubGenerationBody'},
\ {'key': 'InterfaceStubGeneration', 'default': 1},
\ {'key': 'InterfaceStubGenerationObjectIdentifier', 'default': 'this'},
\ {'key': 'InterfaceStubGenerationMethodBody'},
\ {'key': 'AddPrivateAccessModifier', 'default': 0},
\ {'key': 'UnusedOpensAnalyzer', 'default': 1},
\ {'key': 'UnusedOpensAnalyzerExclusions', 'default': []},
\ {'key': 'UnusedDeclarationsAnalyzer', 'default': 1},
\ {'key': 'UnusedDeclarationsAnalyzerExclusions', 'default': []},
\ {'key': 'SimplifyNameAnalyzer', 'default': 0},
\ {'key': 'SimplifyNameAnalyzerExclusions', 'default': []},
\ {'key': 'UnnecessaryParenthesesAnalyzer', 'default': 0},
\ {'key': 'ResolveNamespaces', 'default': 1},
\ {'key': 'EnableReferenceCodeLens', 'default': 1},
\ {'key': 'EnableAnalyzers', 'default': 0},
\ {'key': 'AnalyzersPath'},
\ {'key': 'ExcludeAnalyzers'},
\ {'key': 'IncludeAnalyzers'},
\ {'key': 'DisableInMemoryProjectReferences', 'default': 0},
\ {'key': 'LineLens', 'default': {'enabled': 'never', 'prefix': ''}},
\ {'key': 'UseSdkScripts', 'default': 1},
\ {'key': 'dotNetRoot'},
\ {'key': 'fsiExtraParameters', 'default': []},
\ {'key': 'fsiCompilerToolLocations', 'default': []},
\ {'key': 'TooltipMode', 'default': 'full'},
\ {'key': 'GenerateBinlog', 'default': 0},
\ {'key': 'AbstractClassStubGeneration', 'default': 1},
\ {'key': 'AbstractClassStubGenerationObjectIdentifier', 'default': 'this'},
\ {'key': 'AbstractClassStubGenerationMethodBody', 'default': 'failwith "Not Implemented"'},
"\ {'key': 'CodeLenses', TODO},
"\ {'key': 'PipelineHints', TODO}
"\ {'key': 'InlayHints', TODO}
"\ {'key': 'Fsac', TODO}
"\ {'key': 'Notifications', TODO}
"\ {'key': 'Debug', TODO}
\ ]
let s:config_keys = []

Expand Down

0 comments on commit b58c5b5

Please sign in to comment.