fix: only apply treesitter default links for groups that are not set by the theme or the user
This commit is contained in:
parent
ecae454c30
commit
06d0eadc5e
@ -180,7 +180,11 @@ function M.load(theme)
|
||||
vim.g.colors_name = "tokyonight"
|
||||
|
||||
if ts.new_style() then
|
||||
M.syntax(ts.defaults)
|
||||
for group, colors in pairs(ts.defaults) do
|
||||
if not theme.highlights[group] then
|
||||
M.highlight(group, colors)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
M.syntax(theme.highlights)
|
||||
|
Loading…
Reference in New Issue
Block a user