Skip to content

Commit fa79cb0

Browse files
author
Venkata Subramani Renduchintala
committed
fix(treesitter): disable matchup treesitter integration for markdown
Markdown injection parsing (bash/sh code blocks) triggers a nil-node crash in vim-matchup on InsertEnter. Disable matchup's treesitter engine for markdown to fall back to the working regex-based matching.
1 parent a27af99 commit fa79cb0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/plugins/configs/treesitter.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ return {
117117
-- enables vim-matchup integration
118118
enable = true,
119119
enable_quotes = true,
120+
-- markdown injections (bash/sh code blocks) trigger a nil-node crash
121+
-- in the treesitter injection layer; fall back to regex matching there
122+
disable = { "markdown" },
120123
},
121124
-- incremental_selection = {
122125
-- enable = true,

0 commit comments

Comments
 (0)