From 530834e8c048f755d83590d0fe730cef1f6ea814 Mon Sep 17 00:00:00 2001 From: hrsh7th Date: Fri, 22 Oct 2021 19:50:14 +0900 Subject: [PATCH] Fix group index bug --- lua/cmp/view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmp/view.lua b/lua/cmp/view.lua index e8b9456..2082c30 100644 --- a/lua/cmp/view.lua +++ b/lua/cmp/view.lua @@ -51,7 +51,7 @@ view.open = function(self, ctx, sources) group_index = group_index + 1 local group = vim.tbl_filter(function(s) - return (s:get_config().group or 0) == group_index + return (s:get_config().group or 1) == group_index end, sources) if #group == 0 then