fix(color): fix ansi hl condition
This commit is contained in:
parent
f86eeb7876
commit
b3ccce1ee7
1 changed files with 2 additions and 10 deletions
|
|
@ -194,17 +194,9 @@ function M.setup_highlight_groups()
|
|||
BrightWhite = vim.g.terminal_color_15,
|
||||
}
|
||||
|
||||
local missing_color = false
|
||||
for _, terminal_color in pairs(color_map) do
|
||||
if terminal_color == nil then
|
||||
missing_color = true
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
if missing_color or #color_map == 0 then
|
||||
if vim.tbl_count(color_map) < 16 then
|
||||
logger.log(
|
||||
'ansi terminal colors (vim.g.terminal_color_*) not configured. . ANSI colors will not display properly. ',
|
||||
'ansi terminal colors (vim.g.terminal_color_*) not configured. ANSI colors will not display properly. ',
|
||||
vim.log.levels.WARN
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue