Skip to content

Commit

Permalink
fix: remove deprecated use of vim.tbl_add_reverse_lookup (#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 authored May 17, 2024
1 parent 2412237 commit 31a2939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/cmp/types/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down

0 comments on commit 31a2939

Please sign in to comment.