From cc7148fad6244af748775270c4d5919308f0e733 Mon Sep 17 00:00:00 2001 From: Grafcube Date: Wed, 19 Jun 2024 21:50:54 +0530 Subject: [PATCH] Fix function call --- nixd/lib/Controller/Hover.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nixd/lib/Controller/Hover.cpp b/nixd/lib/Controller/Hover.cpp index b03a30293..725acd438 100644 --- a/nixd/lib/Controller/Hover.cpp +++ b/nixd/lib/Controller/Hover.cpp @@ -70,8 +70,7 @@ class NixpkgsHoverProvider { } if (Package.Description) { - OS << "## Description" - << "\n\n"; + OS << "## Description" << "\n\n"; OS << *Package.Description; OS << "\n\n"; @@ -154,8 +153,7 @@ void Controller::onHover(const TextDocumentPositionParams &Params, for (const auto &[_, Client] : Options) { if (AttrSetClient *C = Client->client()) { OptionsHoverProvider OHP(*C); - std::optional Desc = - OHP.resolveHover(Scope, Name); + std::optional Desc = OHP.resolveHover(Scope); std::string Docs; if (Desc) { if (Desc->Type) {