Skip to content

Commit

Permalink
fix: guides don't pick up italics from Comment group (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Nov 10, 2022
1 parent 480bf14 commit d22daba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lua/aerial/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ M.create_highlight_groups = function()
link("AerialLine", "QuickFixLine")
link("AerialLineNC", "AerialLine")

-- Use Comment colors for AerialGuide, while stripping bold/italic/etc
local comment_defn = vim.api.nvim_get_hl_by_name("Comment", true)
-- The guides when show_guide = true
link("AerialGuide", "Comment")
vim.api.nvim_set_hl(0, "AerialGuide", {
fg = comment_defn.foreground,
bg = comment_defn.background,
ctermfg = comment_defn.ctermfg,
ctermbg = comment_defn.ctermbg,
blend = comment_defn.blend,
default = true,
})
for i = 1, 9 do
link(string.format("AerialGuide%d", i), "AerialGuide")
end
Expand Down

0 comments on commit d22daba

Please sign in to comment.