fix(nvim): make headlines.nvim refresh on VimResized
Some checks are pending
Check Formatting of Files / Check-Formatting (push) Waiting to run

This commit is contained in:
Price Hiller 2024-10-15 17:55:09 -05:00
parent 3656d11b13
commit e158434595
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -2,7 +2,7 @@ return {
{
"lukas-reineke/headlines.nvim",
dependencies = "nvim-treesitter/nvim-treesitter",
opts = function()
config = function()
local bullets = {
"󰪥",
"󰀘",
@ -21,7 +21,8 @@ return {
"@markup.heading.7.marker",
"@markup.heading.8.marker",
}
return {
local headlines = require("headlines")
headlines.setup({
markdown = {
bullets = bullets,
bullet_highlights = bullet_highlights,
@ -65,9 +66,12 @@ return {
bullet_highlights = bullet_highlights,
fat_headline_lower_string = "",
},
}
})
-- TODO: Upstream this fix to headlines.nvim
vim.api.nvim_create_autocmd("VimResized", {
callback = headlines.refresh,
})
end,
config = true,
ft = { "markdown", "norg", "rmd", "org" },
},
}