Skip to content

Commit

Permalink
chore: silence linter for deprecation warning
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Reineke <[email protected]>
  • Loading branch information
mehalter and lukas-reineke authored Oct 2, 2023
1 parent 5a0b79b commit e184a88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/ibl/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ local get = function(name)
if vim.api.nvim_get_hl then -- check for new neovim 0.9 API
hl = vim.api.nvim_get_hl(0, { name = name })
else
---@diagnostic disable-next-line:deprecated
hl = vim.api.nvim_get_hl_by_name(name, true)
end
return hl
Expand Down

0 comments on commit e184a88

Please sign in to comment.