mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 08:35:53 +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
|
||||
end,
|
||||
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