diff --git a/lua/lspconfig/server_configurations/fsautocomplete.lua b/lua/lspconfig/server_configurations/fsautocomplete.lua index 4858c044e6..c642fe6f02 100644 --- a/lua/lspconfig/server_configurations/fsautocomplete.lua +++ b/lua/lspconfig/server_configurations/fsautocomplete.lua @@ -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 = [[