refactor: update depreciated function
This commit is contained in:
@@ -125,7 +125,7 @@ return {
|
|||||||
expandable_indicator = true,
|
expandable_indicator = true,
|
||||||
format = function(entry, vim_item)
|
format = function(entry, vim_item)
|
||||||
if vim.tbl_contains({ 'path' }, entry.source.name) then
|
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
|
if icon then
|
||||||
vim_item.kind = icon
|
vim_item.kind = icon
|
||||||
vim_item.kind_hl_group = hl_group
|
vim_item.kind_hl_group = hl_group
|
||||||
|
|||||||
Reference in New Issue
Block a user