Change nvim_get_hl_by_name -> nvim_get_hl in leap

This commit is contained in:
Martin Larsson 2025-01-12 00:36:00 +01:00
parent e441664ceb
commit f2e27f7a59

View file

@ -4,7 +4,7 @@ local colors = require("ayu.colors")
colors.generate(true)
local function save_and_set_invisible_inlay_hints_hl()
saved_highlights = vim.api.nvim_get_hl_by_name("LspInlayHint", true)
saved_highlights = vim.api.nvim_get_hl(0, { name = "LspInlayHint" })
vim.api.nvim_set_hl(0, "LspInlayHint", { fg = colors.bg, bg = "none" })
end