fix: colors setup highlight and folder highlight range fix (#788)

This commit is contained in:
NiYanhhhhh
2022-01-21 18:17:51 +08:00
committed by GitHub
parent e725572f2a
commit d874eb9065
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ local function get_color_from_hl(hl_name, fallback)
local id = vim.api.nvim_get_hl_id_by_name(hl_name)
if not id then return fallback end
local foreground = vim.fn.synIDattr(id, "fg")
local foreground = vim.fn.synIDattr(vim.fn.synIDtrans(id), "fg")
if not foreground or foreground == "" then return fallback end
return foreground