diff options
author | aszlig <aszlig@nix.build> | 2021-07-06 05:10:35 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2021-07-09 17:48:22 +0200 |
commit | bf04f3d07c11132f4cb6cf288f5c5fec4a823501 (patch) | |
tree | 091d59108ddbe7efefb2460d0e8a2e60768f7f7f /pkgs/profpatsch/gpg-private-offline-key | |
parent | 5f6dd9bad408accbccc6b0cb1174ac9a29959876 (diff) |
vim: Add highlighting for Markdown code blocks
While I could have done this simply by setting the g:markdown_fenced_languages variable, I instead decided it would be a better idea to use the same language names that GitHub recognises via their GitHub Flavored Markdown syntax. Since they're using Linguist, I decided to simply import the YAML file and try to match them against existing Vim syntax files. That way, we only need to maintain a blacklist of languages we do not want and should pretty much get highlighting for all supported languages. Unfortunately, the "markdown.vim" syntax file sources all of the syntax files for these languages and so the more languages we include there, the slower it gets when opening a Markdown file. Right now, I mostly use this for editing textareas, so let's see how annoying the slower load time will get and blacklist more languages later if it bugs me too much. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/profpatsch/gpg-private-offline-key')
0 files changed, 0 insertions, 0 deletions