From dbf2509d443fe842e397a264d38798acc46a7cc4 Mon Sep 17 00:00:00 2001 From: yetone Date: Sat, 24 Aug 2024 04:35:33 +0800 Subject: [PATCH] fix: cannot use function as cmp kind (#184) --- lua/cmp_avante/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp_avante/commands.lua b/lua/cmp_avante/commands.lua index 12ae7a788..5a9794938 100644 --- a/lua/cmp_avante/commands.lua +++ b/lua/cmp_avante/commands.lua @@ -26,7 +26,7 @@ function source:get_keyword_pattern() end function source:complete(_, callback) - local kind = require("cmp").lsp.CompletionItemKind.Function + local kind = require("cmp").lsp.CompletionItemKind.Variable local items = {}