Skip to content

Commit

Permalink
Fix function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafcube committed Jun 19, 2024
1 parent 4d56358 commit cc7148f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nixd/lib/Controller/Hover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ class NixpkgsHoverProvider {
}

if (Package.Description) {
OS << "## Description"
<< "\n\n";
OS << "## Description" << "\n\n";
OS << *Package.Description;
OS << "\n\n";

Expand Down Expand Up @@ -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<OptionDescription> Desc =
OHP.resolveHover(Scope, Name);
std::optional<OptionDescription> Desc = OHP.resolveHover(Scope);
std::string Docs;
if (Desc) {
if (Desc->Type) {
Expand Down

0 comments on commit cc7148f

Please sign in to comment.