tree-sitter-grammars / tree-sitter-markdown

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

Link concealing? #16

Closed smartding closed 2 years ago

smartding commented 2 years ago

I've been using plasticboy/vim-markdown for markdown syntax highlighting and other stuff for years. I really misses the link concealing feature of that plugin when I switched to tree-sitter-markdown today. Link concealing shows [text](link) as text and make the whole document less cluttered, especially if the link is very long.

Not sure if link concealing is within the scope of tree-sitter.

MDeiml commented 2 years ago

You could try additional_vim_regex_highlighting = true as documented here. But that's just a workaround that enables the traditional vim syntax in the background, so you will get no performance benefit from using tree-sitter.

smartding commented 2 years ago

Ok, thanks.

D00mch commented 2 years ago

so have you achieve concealing? I tried additional_vim_regex_hightlighting and it doesn't work for me.

P.S. I moved to a vim-markdown for a while :) https://github.com/Liverm0r/dotfiles/commit/2612351d765ed6757663c1de1a306cebaa205848

smartding commented 2 years ago

@Liverm0r No, I went back to plasticboy/vim-markdown. Because I need link concealing, and I can live with the not-so-good performance.

D00mch commented 2 years ago

By the way, before treesitter and lsp I was using vim-polyglot, and it was also concealing .md links.