refactor: update depreciated function

This commit is contained in:
2024-12-08 14:03:04 -05:00
parent eab227c340
commit a73dc2fa42
+2 -2
View File
@@ -125,7 +125,7 @@ return {
expandable_indicator = true,
format = function(entry, vim_item)
if vim.tbl_contains({ 'path' }, entry.source.name) then
local icon, hl_group = require('nvim-web-devicons').get_icon(entry:get_completion_item().label)
local icon, hl_group = require('nvim-web-devicons').get_icon(entry:completion_item().label)
if icon then
vim_item.kind = icon
vim_item.kind_hl_group = hl_group
@@ -210,4 +210,4 @@ return {
},
})
end,
}
}