Skip to content

Commit

Permalink
specify sort score of .Method completion kind
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Feb 13, 2024
1 parent faa87d2 commit 88a352a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/completions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ fn kindToSortScore(kind: types.CompletionItemKind) ?[]const u8 {

.Variable => "2_",
.Field => "3_",
.Function => "4_",
.Function, .Method => "4_",

.Keyword, .Snippet, .EnumMember => "5_",

Expand All @@ -673,7 +673,7 @@ fn kindToSortScore(kind: types.CompletionItemKind) ?[]const u8 {
=> "6_",

else => {
log.debug(@typeName(types.CompletionItemKind) ++ "{s} has no sort score specified!", .{@tagName(kind)});
log.debug(@typeName(types.CompletionItemKind) ++ ".{s} has no sort score specified!", .{@tagName(kind)});
return null;
},
};
Expand Down

0 comments on commit 88a352a

Please sign in to comment.