diff options
author | Marcos Ferreira <mracos@users.noreply.github.com> | 2021-06-09 16:21:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 21:21:38 +0200 |
commit | c6f9e5b2117380b67de5bb4502bf4053378ac3c9 (patch) | |
tree | 30820987aff14f643ca2ad3968b74f7b058e98f6 | |
parent | 3e71cdad56bdd2b1af812f63f6eca856ac6c1984 (diff) | |
download | vim-polyglot-c6f9e5b2117380b67de5bb4502bf4053378ac3c9.tar.gz vim-polyglot-c6f9e5b2117380b67de5bb4502bf4053378ac3c9.zip |
Add mermaid (#721)
Co-authored-by: Adam Stankiewicz <sheerun@sher.pl>
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | autoload/polyglot/init.vim | 12 | ||||
-rw-r--r-- | autoload/polyglot/sleuth.vim | 3 | ||||
-rw-r--r-- | packages.yaml | 10 | ||||
-rw-r--r-- | tests/filetypes.vim | 4 |
5 files changed, 29 insertions, 3 deletions
@@ -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. - 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) - 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) @@ -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) - [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) +- [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) - [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) diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim index 536b7dce..07d18697 100644 --- a/autoload/polyglot/init.vim +++ b/autoload/polyglot/init.vim @@ -169,6 +169,10 @@ let did_load_filetypes = 1 " 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') au BufNewFile,BufRead *.scad setf openscad endif @@ -2297,6 +2301,14 @@ if !has_key(g:polyglot_is_disabled, 'icalendar') au BufNewFile,BufRead *.ics setf icalendar 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') au BufNewFile,BufRead *.hql,*.q,*.ql setf hive endif diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index 64893959..ce1d135c 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -236,8 +236,8 @@ let s:globs = { \ 'htmldjango': '*.jinja,*.j2,*.jinja2', \ 'htmlm4': '*.html.m4', \ 'httest': '*.htt,*.htb', + \ 'i3config': '*.i3config,*.i3.config,*.swayconfig,*.sway.config,i3.config,sway.config,i3config,.i3.config,.i3config', \ 'hxml': '*.hxml', - \ 'i3config': '*.i3config,*.i3.config,*.swayconfig,*.sway.config,i3.config,sway.config', \ 'ibasic': '*.iba,*.ibi', \ 'icalendar': '*.ics', \ 'icemenu': '', @@ -328,6 +328,7 @@ let s:globs = { \ 'mason': '*.mason,*.mhtml,*.comp', \ 'master': '*.mas,*.master', \ 'mel': '*.mel', + \ 'mermaid': '*.mermaid,*.mm,*.mmd', \ 'meson': 'meson.build,meson_options.txt', \ 'messages': '', \ 'mf': '*.mf', diff --git a/packages.yaml b/packages.yaml index cd65118b..e272a2e2 100644 --- a/packages.yaml +++ b/packages.yaml @@ -5604,4 +5604,12 @@ filetypes: - name: openscad patterns: - pattern: '*.scad' - description: OpenSCAD 3D modeling language
\ No newline at end of file + 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/)
\ No newline at end of file diff --git a/tests/filetypes.vim b/tests/filetypes.vim index 69f9269b..e4a4ef83 100644 --- a/tests/filetypes.vim +++ b/tests/filetypes.vim @@ -121,6 +121,7 @@ call TestFiletype('hxml') call TestFiletype('hss') call TestFiletype('hcl') call TestFiletype('hive') +call TestFiletype('i3config') call TestFiletype('icalendar') call TestFiletype('idris') call TestFiletype('idris2') @@ -648,6 +649,9 @@ call TestFiletype('mint') call TestFiletype('jsonc') call TestFiletype('gleam') call TestFiletype('hjson') +call TestFiletype('just') +call TestFiletype('nftables') +call TestFiletype('mermaid') call TestFiletype('i3config') call TestFiletype('just') call TestFiletype('nftables') |