mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
fix(markdown): create default numbered Headline groups for colorschemes that dont support them. Fixes #1822
This commit is contained in:
parent
c400cf0014
commit
eab464d52d
1 changed files with 6 additions and 2 deletions
|
@ -67,9 +67,13 @@ return {
|
||||||
opts = function()
|
opts = function()
|
||||||
local opts = {}
|
local opts = {}
|
||||||
for _, ft in ipairs({ "markdown", "norg", "rmd", "org" }) do
|
for _, ft in ipairs({ "markdown", "norg", "rmd", "org" }) do
|
||||||
opts[ft] = { headline_highlights = {} }
|
opts[ft] = {
|
||||||
|
headline_highlights = {},
|
||||||
|
}
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
table.insert(opts[ft].headline_highlights, "Headline" .. i)
|
local hl = "Headline" .. i
|
||||||
|
vim.api.nvim_set_hl(0, hl, { link = "Headline", default = true })
|
||||||
|
table.insert(opts[ft].headline_highlights, hl)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return opts
|
return opts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue