Add mermaid (#721)

Co-authored-by: Adam Stankiewicz <sheerun@sher.pl>
This commit is contained in:
Marcos Ferreira
2021-06-09 16:21:38 -03:00
committed by GitHub
parent 3e71cdad56
commit c6f9e5b211
5 changed files with 29 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ A collection of language packs for Vim.
> One to rule them all, one to find them, one to bring them all and in the darkness bind them. > One to rule them all, one to find them, one to bring them all and in the darkness bind them.
- It **won't affect your startup time**, as scripts are loaded only on demand\*. - It **won't affect your startup time**, as scripts are loaded only on demand\*.
- It **installs and updates 120+ times faster** than the <!--Package Count-->605<!--/Package Count--> packages it consists of. - It **installs and updates 120+ times faster** than the <!--Package Count-->607<!--/Package Count--> packages it consists of.
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot) - It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
- Best syntax and indentation support (no other features). Hand-selected language packs. - Best syntax and indentation support (no other features). Hand-selected language packs.
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled) - Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)
@@ -129,6 +129,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [markdown](https://github.com/plasticboy/vim-markdown) (Markdown syntax highlighting for md, markdown, mdown, mdwn, mkd, mkdn, mkdown, ronn, scd and workbook files) - [markdown](https://github.com/plasticboy/vim-markdown) (Markdown syntax highlighting for md, markdown, mdown, mdwn, mkd, mkdn, mkdown, ronn, scd and workbook files)
- [mathematica](https://github.com/voldikss/vim-mma) (Mathematica syntax highlighting for mathematica, cdf, m, ma, mt and 6 more files) - [mathematica](https://github.com/voldikss/vim-mma) (Mathematica syntax highlighting for mathematica, cdf, m, ma, mt and 6 more files)
- [mdx](https://github.com/jxnblk/vim-mdx-js) (Syntax highlighting for mdx files) - [mdx](https://github.com/jxnblk/vim-mdx-js) (Syntax highlighting for mdx files)
- [mermaid](https://github.com/mracos/mermaid.vim) (Syntax highlighting for mermaid, mm and mmd files)
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files) - [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files)
- [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files) - [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files)
- [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files) - [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files)

View File

@@ -169,6 +169,10 @@ let did_load_filetypes = 1
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
if !has_key(g:polyglot_is_disabled, 'mermaid')
au BufNewFile,BufRead *.mermaid,*.mm,*.mmd setf mermaid
endif
if !has_key(g:polyglot_is_disabled, 'openscad') if !has_key(g:polyglot_is_disabled, 'openscad')
au BufNewFile,BufRead *.scad setf openscad au BufNewFile,BufRead *.scad setf openscad
endif endif
@@ -2297,6 +2301,14 @@ if !has_key(g:polyglot_is_disabled, 'icalendar')
au BufNewFile,BufRead *.ics setf icalendar au BufNewFile,BufRead *.ics setf icalendar
endif endif
if !has_key(g:polyglot_is_disabled, 'i3')
au BufNewFile,BufRead *.i3.config,*.i3config,{.,}i3.config,{.,}i3config,i3.config,i3config setf i3config
endif
if !has_key(g:polyglot_is_disabled, 'sway')
au BufNewFile,BufRead *.i3.config,*.i3config,*.sway.config,*.swayconfig,*sway/config,i3.config,sway.config setf i3config
endif
if !has_key(g:polyglot_is_disabled, 'hive') if !has_key(g:polyglot_is_disabled, 'hive')
au BufNewFile,BufRead *.hql,*.q,*.ql setf hive au BufNewFile,BufRead *.hql,*.q,*.ql setf hive
endif endif

View File

@@ -236,8 +236,8 @@ let s:globs = {
\ 'htmldjango': '*.jinja,*.j2,*.jinja2', \ 'htmldjango': '*.jinja,*.j2,*.jinja2',
\ 'htmlm4': '*.html.m4', \ 'htmlm4': '*.html.m4',
\ 'httest': '*.htt,*.htb', \ 'httest': '*.htt,*.htb',
\ 'i3config': '*.i3config,*.i3.config,*.swayconfig,*.sway.config,i3.config,sway.config,i3config,.i3.config,.i3config',
\ 'hxml': '*.hxml', \ 'hxml': '*.hxml',
\ 'i3config': '*.i3config,*.i3.config,*.swayconfig,*.sway.config,i3.config,sway.config',
\ 'ibasic': '*.iba,*.ibi', \ 'ibasic': '*.iba,*.ibi',
\ 'icalendar': '*.ics', \ 'icalendar': '*.ics',
\ 'icemenu': '', \ 'icemenu': '',
@@ -328,6 +328,7 @@ let s:globs = {
\ 'mason': '*.mason,*.mhtml,*.comp', \ 'mason': '*.mason,*.mhtml,*.comp',
\ 'master': '*.mas,*.master', \ 'master': '*.mas,*.master',
\ 'mel': '*.mel', \ 'mel': '*.mel',
\ 'mermaid': '*.mermaid,*.mm,*.mmd',
\ 'meson': 'meson.build,meson_options.txt', \ 'meson': 'meson.build,meson_options.txt',
\ 'messages': '', \ 'messages': '',
\ 'mf': '*.mf', \ 'mf': '*.mf',

View File

@@ -5605,3 +5605,11 @@ filetypes:
patterns: patterns:
- pattern: '*.scad' - pattern: '*.scad'
description: OpenSCAD 3D modeling language description: OpenSCAD 3D modeling language
---
name: mermaid
remote: mracos/mermaid.vim
filetypes:
- name: mermaid
patterns:
- pattern: '*.mermaid,*.mm,*.mmd'
description: Mermaid (https://mermaid-js.github.io/)

View File

@@ -121,6 +121,7 @@ call TestFiletype('hxml')
call TestFiletype('hss') call TestFiletype('hss')
call TestFiletype('hcl') call TestFiletype('hcl')
call TestFiletype('hive') call TestFiletype('hive')
call TestFiletype('i3config')
call TestFiletype('icalendar') call TestFiletype('icalendar')
call TestFiletype('idris') call TestFiletype('idris')
call TestFiletype('idris2') call TestFiletype('idris2')
@@ -648,6 +649,9 @@ call TestFiletype('mint')
call TestFiletype('jsonc') call TestFiletype('jsonc')
call TestFiletype('gleam') call TestFiletype('gleam')
call TestFiletype('hjson') call TestFiletype('hjson')
call TestFiletype('just')
call TestFiletype('nftables')
call TestFiletype('mermaid')
call TestFiletype('i3config') call TestFiletype('i3config')
call TestFiletype('just') call TestFiletype('just')
call TestFiletype('nftables') call TestFiletype('nftables')