Skip to content

Commit

Permalink
feat: added recommended default settings for fsautocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtb committed Jun 19, 2024
1 parent 5c33bf1 commit ad48240
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/lspconfig/server_configurations/fsautocomplete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ return {
init_options = {
AutomaticWorkspaceInit = true,
},
-- this recommended settings values taken from https://github.com/ionide/FsAutoComplete?tab=readme-ov-file#settings
settings = {
FSharp = {
keywordsAutocomplete = true,
ExternalAutocomplete = false,
Linter = true,
UnionCaseStubGeneration = true,
UnionCaseStubGenerationBody = 'failwith "Not Implemented"',
RecordStubGeneration = true,
RecordStubGenerationBody = 'failwith "Not Implemented"',
InterfaceStubGeneration = true,
InterfaceStubGenerationObjectIdentifier = 'this',
InterfaceStubGenerationMethodBody = 'failwith "Not Implemented"',
UnusedOpensAnalyzer = true,
UnusedDeclarationsAnalyzer = true,
UseSdkScripts = true,
SimplifyNameAnalyzer = true,
ResolveNamespaces = true,
EnableReferenceCodeLens = true,
}
},
},
docs = {
description = [[
Expand Down

0 comments on commit ad48240

Please sign in to comment.