File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,17 @@ vim.filetype.add({
3434 },
3535})
3636
37+ -- nvim-treesitter is incompatible with nvim 0.12's captures API for markdown
38+ -- injections (TSNode[] vs TSNode mismatch in set-lang-from-info-string!),
39+ -- causing crashes in both the highlighter and vim-matchup. Stop treesitter
40+ -- for markdown until upstream fixes the predicate handler.
41+ vim .api .nvim_create_autocmd (" FileType" , {
42+ pattern = " markdown" ,
43+ callback = function ()
44+ vim .treesitter .stop ()
45+ end ,
46+ })
47+
3748-- Disable automatic line breaks
3849vim .api .nvim_create_autocmd (" FileType" , {
3950 pattern = " *" ,
Original file line number Diff line number Diff line change 22 " andymass/vim-matchup" ,
33 config = function ()
44 vim .g .matchup_matchparen_offscreen = { method = " popup" }
5+ -- disable matchup's treesitter engine for markdown (same nvim 0.12 incompatibility)
6+ vim .g .matchup_treesitter_disabled = { " markdown" }
57 end ,
68}
You can’t perform that action at this time.
0 commit comments