tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
379 stars 45 forks source link

Code fence indents #21

Closed axieax closed 2 years ago

axieax commented 2 years ago

Hi, not too sure about the current implementation, but would it be possible to get treesitter indenting according to the parser for the language corresponding to code blocks, just like how treesitter highlights are correctly used based on the language?

MDeiml commented 2 years ago

I imagine you are using nvim-treesitter? I think this would require a indentation.scm query file, but I am not an expert on this. I think it would make more sense to open an issue on the nvim-treesitter repo.