diff --git a/lua/cmp/types/lsp.lua b/lua/cmp/types/lsp.lua index 1ab3ca84d..f8402fbf3 100644 --- a/lua/cmp/types/lsp.lua +++ b/lua/cmp/types/lsp.lua @@ -200,7 +200,8 @@ lsp.CompletionItemKind = { Operator = 24, TypeParameter = 25, } -for k, v in pairs(lsp.CompletionItemKind) do +for _, k in ipairs(vim.tbl_keys(lsp.CompletionItemKind)) do + local v = lsp.CompletionItemKind[k] lsp.CompletionItemKind[v] = k end