martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 260 forks source link

Markdown syntax highlighting not working after lexer update #1186

Closed jpaulogg closed 2 months ago

jpaulogg commented 2 months ago

Problem

After the lexer update (commit 0f46c50), markdown files are displayed without any syntax highlighting.

Steps to reproduce

No response

vis version (vis -v)

vis v0.7-168-g390e49e +curses +lua +tre +acl +selinux

Terminal name/version

st -0.9

$TERM environment variable

No response

rnpnr commented 2 months ago

Are you using the default theme? I should probably uncomment the giant list of lexer specific styles: https://github.com/martanne/vis/blob/1d37e5c8930c7542855da0a864c02ee4fd88c092/lua/themes/base-16.lua#L66-L73

If it's your own theme you will need to add the lines. As for the zenburn/solarized themes someone else will have to update them. I have no idea what either of those are supposed to look like because I've never used them.

jpaulogg commented 2 months ago

Are you using the default theme? I should probably uncomment the giant list of lexer specific styles:

Yes, i am. After running make install, it's working correctly now. Thanks :)