mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
perf(markdown): prevent headlines.nvim slowing down initial rendering with nvim README.md
This commit is contained in:
parent
1e1b68d633
commit
b651560ad0
1 changed files with 7 additions and 0 deletions
|
@ -79,5 +79,12 @@ return {
|
||||||
return opts
|
return opts
|
||||||
end,
|
end,
|
||||||
ft = { "markdown", "norg", "rmd", "org" },
|
ft = { "markdown", "norg", "rmd", "org" },
|
||||||
|
config = function(_, opts)
|
||||||
|
-- PERF: schedule to prevent headlines slowing down opening a file
|
||||||
|
vim.schedule(function()
|
||||||
|
require("headlines").setup(opts)
|
||||||
|
require("headlines").refresh()
|
||||||
|
end)
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue