Commit 42d8ea9
Venkata Subramani Renduchintala
fix(treesitter): stop treesitter for markdown to fix nvim 0.12 injection crash
nvim 0.12 changed _apply_directives to pass TSNode[] instead of TSNode
for captures. nvim-treesitter's set-lang-from-info-string! predicate calls
node:range() on the array, crashing both the highlighter and vim-matchup.
Stop treesitter for markdown via FileType autocmd and disable matchup's
treesitter engine for markdown via vim.g.matchup_treesitter_disabled.
Revert the ineffective nvim-treesitter module-level disable that was
added in the previous commit.1 parent fa79cb0 commit 42d8ea9
3 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 120 | | |
124 | 121 | | |
125 | 122 | | |
| |||
0 commit comments