Skip to content

Commit 11c9e91

Browse files
committed
chore: replace deprecated neovim API
1 parent 8e2664d commit 11c9e91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvim-web-devicons.lua

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ local function get_highlight_ctermfg(icon_data)
191191
local higroup = get_highlight_name(icon_data)
192192

193193
if vim.fn.has "nvim-0.9" == 1 then
194+
--- @type string
194195
--- @diagnostic disable-next-line: undefined-field vim.api.keyset.hl_info specifies cterm, not ctermfg
195196
return vim.api.nvim_get_hl(0, { name = higroup, link = false }).ctermfg
196197
else

0 commit comments

Comments
 (0)