Index: clangd/tool/ClangdMain.cpp =================================================================== --- clangd/tool/ClangdMain.cpp +++ clangd/tool/ClangdMain.cpp @@ -87,10 +87,10 @@ llvm::cl::init(PCHStorageFlag::Disk)); static llvm::cl::opt LimitCompletionResult( - "limit-completion", + "completion-limit", llvm::cl::desc("Limit the number of completion results returned by clangd. " "0 means no limit."), - llvm::cl::init(0)); + llvm::cl::init(100)); static llvm::cl::opt RunSynchronously( "run-synchronously", @@ -117,9 +117,9 @@ static llvm::cl::opt EnableIndexBasedCompletion( "enable-index-based-completion", llvm::cl::desc( - "Enable index-based global code completion (experimental). Clangd will " - "use index built from symbols in opened files"), - llvm::cl::init(false), llvm::cl::Hidden); + "Enable index-based global code completion. " + "Clang uses an index built from symbols in opened files"), + llvm::cl::init(true)); static llvm::cl::opt YamlSymbolFile( "yaml-symbol-file",