mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
chore(cpicker): remove duplicate code
This commit is contained in:
parent
e143116bc5
commit
3c87db406c
@ -67,12 +67,6 @@ function M.set_default_color(formats)
|
||||
end
|
||||
end
|
||||
elseif #inspect.treesitter > 0 then
|
||||
local fg =
|
||||
vim.api.nvim_get_hl(0, { name = inspect.treesitter[#inspect.treesitter].hl_group_link }).fg
|
||||
if fg then
|
||||
hex = string.format('#%06X', fg)
|
||||
end
|
||||
|
||||
for i = #inspect.treesitter, 1, -1 do
|
||||
local fg = vim.api.nvim_get_hl(0, { name = inspect.treesitter[i].hl_group_link }).fg
|
||||
if fg then
|
||||
|
Loading…
Reference in New Issue
Block a user