From 88a352a46ce7fbf81aa009dec6f03bd7d08af2b1 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Tue, 13 Feb 2024 04:53:38 +0100 Subject: [PATCH] specify sort score of .Method completion kind --- src/features/completions.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/completions.zig b/src/features/completions.zig index c51357fa1..6c2011bb6 100644 --- a/src/features/completions.zig +++ b/src/features/completions.zig @@ -660,7 +660,7 @@ fn kindToSortScore(kind: types.CompletionItemKind) ?[]const u8 { .Variable => "2_", .Field => "3_", - .Function => "4_", + .Function, .Method => "4_", .Keyword, .Snippet, .EnumMember => "5_", @@ -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; }, };