fix(nvim): make headlines.nvim
refresh on VimResized
Some checks are pending
Check Formatting of Files / Check-Formatting (push) Waiting to run
Some checks are pending
Check Formatting of Files / Check-Formatting (push) Waiting to run
This commit is contained in:
parent
3656d11b13
commit
e158434595
@ -2,7 +2,7 @@ return {
|
|||||||
{
|
{
|
||||||
"lukas-reineke/headlines.nvim",
|
"lukas-reineke/headlines.nvim",
|
||||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||||
opts = function()
|
config = function()
|
||||||
local bullets = {
|
local bullets = {
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
@ -21,7 +21,8 @@ return {
|
|||||||
"@markup.heading.7.marker",
|
"@markup.heading.7.marker",
|
||||||
"@markup.heading.8.marker",
|
"@markup.heading.8.marker",
|
||||||
}
|
}
|
||||||
return {
|
local headlines = require("headlines")
|
||||||
|
headlines.setup({
|
||||||
markdown = {
|
markdown = {
|
||||||
bullets = bullets,
|
bullets = bullets,
|
||||||
bullet_highlights = bullet_highlights,
|
bullet_highlights = bullet_highlights,
|
||||||
@ -65,9 +66,12 @@ return {
|
|||||||
bullet_highlights = bullet_highlights,
|
bullet_highlights = bullet_highlights,
|
||||||
fat_headline_lower_string = "▀",
|
fat_headline_lower_string = "▀",
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
-- TODO: Upstream this fix to headlines.nvim
|
||||||
|
vim.api.nvim_create_autocmd("VimResized", {
|
||||||
|
callback = headlines.refresh,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
config = true,
|
|
||||||
ft = { "markdown", "norg", "rmd", "org" },
|
ft = { "markdown", "norg", "rmd", "org" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user