Have you installed the treeesitter grammars for those languages with :TSInstall
or in your treesitter config?
Comment on Markdown everywhere
bananaw@sh.itjust.works 1 year agoI’ve been having trouble getting syntax highlighting to work on my ‘```’ fenced code blocks. I give it the right/supported language identifier, but nothing changes.
I’m using neovim with a bunch of lsp plugins and treesitter. Anyone have dotfiles with markdown code syntax highlighting working?
ocelot@lemmy.sdf.org 1 year ago
Slotos@feddit.nl 1 year ago
This is pretty much all that’s needed. The language in the block is identified via a name that follows the opening triple backtick. E.g.:
```python some carefully indented code ```
naught@sh.itjust.works 1 year ago
Are u using Mason and LSPconfig?