From 2c35020d300849ebd48973add395a32d493e828d Mon Sep 17 00:00:00 2001 From: Andre Toerien Date: Mon, 6 Jan 2025 16:10:21 +0200 Subject: [PATCH] fixup! fix: remove deprecated use of vim.tbl_add_reverse_lookup (#1931) (#1991) --- lua/cmp/types/lsp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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