File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,11 @@ M.default_config = {
236
236
function M .setup (opts )
237
237
state .config = vim .tbl_deep_extend (' force' , M .default_config , opts or {})
238
238
state .enabled = state .config .start_enabled
239
- state .markdown_query = vim .treesitter .query .parse (' markdown' , state .config .markdown_query )
240
- state .inline_query = vim .treesitter .query .parse (' markdown_inline' , state .config .inline_query )
241
-
239
+ vim .schedule (function ()
240
+ state .markdown_query = vim .treesitter .query .parse (' markdown' , state .config .markdown_query )
241
+ state .inline_query = vim .treesitter .query .parse (' markdown_inline' , state .config .inline_query )
242
+ end )
242
243
manager .setup ()
243
-
244
244
vim .api .nvim_create_user_command (
245
245
' RenderMarkdownToggle' ,
246
246
M .toggle ,
You can’t perform that action at this time.
0 commit comments