ivy.nvim/cpp/match.hpp
Ade Attwood 4e174d65f8 fix: reverse the order of results
This makes all of the relevant results come at the bottom of the list to
keep your eyes closer to the prompt.
2022-07-23 09:00:51 +01:00

14 lines
211 B
C++

#pragma once
#include <string>
namespace ivy {
struct Match {
int score;
std::string content;
};
static bool sort_match(const Match& a, const Match& b) { return a.score < b.score; }
} // namespace ivy