mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(lazygit): not needed to use deprecated fallback for set_hl
This commit is contained in:
parent
f29c5865a8
commit
14f076e039
1 changed files with 1 additions and 3 deletions
|
@ -96,9 +96,7 @@ local function get_color(v)
|
|||
for _, c in ipairs({ "fg", "bg" }) do
|
||||
if v[c] then
|
||||
local name = v[c]
|
||||
local hl = vim.api.nvim_get_hl and vim.api.nvim_get_hl(0, { name = name, link = false })
|
||||
or vim.api.nvim_get_hl_by_name(name, true)
|
||||
|
||||
local hl = vim.api.nvim_get_hl(0, { name = name, link = false })
|
||||
local hl_color ---@type number?
|
||||
if c == "fg" then
|
||||
hl_color = hl and hl.fg or hl.foreground
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue