LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.31k stars 1.17k forks source link

Markdown highlighting not working as expected #278

Closed jordan-bravo closed 1 year ago

jordan-bravo commented 1 year ago

I just installed Neovim From Scratch and haven't made any modifications yet. Syntax highlighting seems to be working fine for all file types (Screenshot 1) except markdown files (Screenshot 2).

Is there any additional configuration I need to do? I have done a search for this issue but found nothing.

Screenshot 1: File types other than markdown seem to have correct highlighting, e.g. lua:

Screenshot 2022-12-14 at 09 22 53

Screenshot 2: Markdown files seem to have random/broken highlighting:

Screenshot 2022-12-14 at 09 23 27

geberl commented 1 year ago

The red words in your second screenshot are from Neovim's built in spellchecker. You can disable this in https://github.com/LunarVim/Neovim-from-scratch/blob/master/lua/user/autocommands.lua#L19

jordan-bravo commented 1 year ago

Thank you, that answers my question.

I will reference the Neovim spell options.

So does that mean markdown files don't get any syntax highlighting?

Rishabh672003 commented 1 year ago

@jordan-bravo markdown files do get highlighting just do :TSInstall markdown markdown_inline

jordan-bravo commented 1 year ago

Thank you for your help.

I am closing this issue since it is resolved.