fix: remove deprecated use of vim.tbl_add_reverse_lookup (#1931)

This commit is contained in:
Lewis Russell 2024-05-17 07:54:23 +01:00 committed by GitHub
parent 2412237181
commit 31a2939e55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,7 +202,9 @@ lsp.CompletionItemKind = {
Operator = 24,
TypeParameter = 25,
}
lsp.CompletionItemKind = vim.tbl_add_reverse_lookup(lsp.CompletionItemKind)
for k, v in pairs(lsp.CompletionItemKind) do
lsp.CompletionItemKind[v] = k
end
---@class lsp.internal.CompletionItemDefaults
---@field public commitCharacters? string[]