perf(markdown): prevent headlines.nvim slowing down initial rendering with nvim README.md
This commit is contained in:
@ -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,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user