fix: colors setup highlight and folder highlight range fix (#788)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user