Skip to content

Commit b147123

Browse files
committed
Ensure some files are compied from each package
1 parent 7f98e94 commit b147123

File tree

17 files changed

+861
-134
lines changed

17 files changed

+861
-134
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A collection of language packs for Vim.
77
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
88
99
- It **won't affect your startup time**, as scripts are loaded only on demand\*.
10-
- It **installs and updates 120+ times faster** than the <!--Package Count-->606<!--/Package Count--> packages it consists of.
10+
- It **installs and updates 120+ times faster** than the <!--Package Count-->598<!--/Package Count--> packages it consists of.
1111
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
1212
- Best syntax and indentation support (no other features). Hand-selected language packs.
1313
- Automatically detects indentation (includes performance-optimized version of [vim-sleuth](https://github.com/tpope/vim-sleuth), can be disabled)
@@ -119,7 +119,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
119119
- [just](https://github.com/NoahTheDuke/vim-just) (Syntax highlighting for just files)
120120
- [kotlin](https://github.com/udalov/kotlin-vim) (Kotlin syntax highlighting for kt, ktm and kts files)
121121
- [ledger](https://github.com/ledger/vim-ledger) (Syntax highlighting for ldg, ledger and journal files)
122-
- [lilypond](https://github.com/anowlcalledjosh/vim-lilypond) (LilyPond syntax highlighting for ly and ily files)
122+
- [lilypond](https://github.com/anowlcalledjosh/vim-lilypond/tree/main) (LilyPond syntax highlighting for ly and ily files)
123123
- [livescript](https://github.com/gkz/vim-ls) (LiveScript syntax highlighting for ls files)
124124
- [llvm](https://github.com/rhysd/vim-llvm) (LLVM syntax highlighting for ll and td files)
125125
- [log](https://github.com/MTDL9/vim-log-highlighting) (Syntax highlighting for log and LOG files)
@@ -128,7 +128,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
128128
- [markdown](https://github.com/plasticboy/vim-markdown) (Markdown syntax highlighting for md, markdown, mdown, mdwn, mkd, mkdn, mkdown, ronn, scd and workbook files)
129129
- [mathematica](https://github.com/voldikss/vim-mma) (Mathematica syntax highlighting for mathematica, cdf, m, ma, mt and 6 more files)
130130
- [mdx](https://github.com/jxnblk/vim-mdx-js) (Syntax highlighting for mdx files)
131-
- [mermaid](https://github.com/mracos/mermaid.vim) (Syntax highlighting for mermaid, mm and mmd files)
131+
- [mermaid](https://github.com/mracos/mermaid.vim/tree/main) (Syntax highlighting for mermaid, mm and mmd files)
132132
- [meson](https://github.com/mesonbuild/meson/tree/master/data/syntax-highlighting/vim) (Meson syntax highlighting for wrap files)
133133
- [mint](https://github.com/IrenejMarc/vim-mint) (Syntax highlighting for mint files)
134134
- [moonscript](https://github.com/leafo/moonscript-vim) (MoonScript syntax highlighting for moon files)
@@ -182,15 +182,15 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
182182
- [svelte](https://github.com/leafOfTree/vim-svelte-plugin) (Svelte syntax highlighting for svelte files)
183183
- [svg-indent](https://github.com/jasonshell/vim-svg-indent)
184184
- [svg](https://github.com/vim-scripts/svg.vim) (SVG syntax highlighting for svg files)
185-
- [sway](https://github.com/jamespeapen/swayconfig.vim/tree/i3sway) (Syntax highlighting for i3config, i3.config, swayconfig and sway.config files)
185+
- [sway](https://github.com/jamespeapen/swayconfig.vim) (Syntax highlighting for swayconfig and sway.config files)
186186
- [swift](https://github.com/keith/swift.vim) (Swift syntax highlighting for swift files)
187187
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (Syntax highlighting for sxhkdrc files)
188188
- [systemd](https://github.com/wgwoods/vim-systemd-syntax) (Syntax highlighting for automount, dnssd, link, mount, netdev and 9 more files)
189189
- [terraform](https://github.com/hashivim/vim-terraform) (HCL syntax highlighting for tf, tfvars, hcl, nomad and workflow files)
190190
- [textile](https://github.com/timcharper/textile.vim) (Textile syntax highlighting for textile files)
191191
- [thrift](https://github.com/solarnz/thrift.vim) (Thrift syntax highlighting for thrift files)
192192
- [tmux](https://github.com/ericpruitt/tmux.vim/tree/master/vim)
193-
- [toml](https://github.com/cespare/vim-toml) (TOML syntax highlighting for toml files)
193+
- [toml](https://github.com/cespare/vim-toml/tree/main) (TOML syntax highlighting for toml files)
194194
- [tptp](https://github.com/c-cube/vim-tptp) (Syntax highlighting for p, tptp and ax files)
195195
- [twig](https://github.com/lumiliet/vim-twig) (Twig syntax highlighting for twig and xml.twig files)
196196
- [typescript](https://github.com/HerringtonDarkholme/yats.vim) (TypeScript and TSX syntax highlighting for ts and tsx files)

autoload/polyglot/init.vim

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ if !has_key(g:polyglot_is_disabled, 'just')
190190
endif
191191

192192
if !has_key(g:polyglot_is_disabled, 'sway')
193-
au BufNewFile,BufRead *.i3.config,*.i3config,*.sway.config,*.swayconfig,*sway/config,i3.config,sway.config setf i3config
193+
au BufNewFile,BufRead *.sway.config,*.swayconfig,*sway/config,swayconfig setf swayconfig
194194
endif
195195

196196
if !has_key(g:polyglot_is_disabled, 'hjson')
@@ -228,10 +228,6 @@ if !has_key(g:polyglot_is_disabled, 'xf86conf')
228228
au BufNewFile,BufRead XF86Config* call s:StarSetf('xf86conf')
229229
endif
230230

231-
if !has_key(g:polyglot_is_disabled, 'pullrequest')
232-
au BufNewFile,BufRead PULLREQ_EDITMSG setf pullrequest
233-
endif
234-
235231
if !has_key(g:polyglot_is_disabled, 'text')
236232
au BufNewFile,BufRead *.text,README setf text
237233
endif
@@ -276,10 +272,6 @@ if !has_key(g:polyglot_is_disabled, 'z8a')
276272
au BufNewFile,BufRead *.z8a setf z8a
277273
endif
278274

279-
if !has_key(g:polyglot_is_disabled, 'zimbutempl')
280-
au BufNewFile,BufRead *.zut setf zimbutempl
281-
endif
282-
283275
if !has_key(g:polyglot_is_disabled, 'zimbu')
284276
au BufNewFile,BufRead *.zu setf zimbu
285277
endif
@@ -801,10 +793,6 @@ if !has_key(g:polyglot_is_disabled, 'privoxy')
801793
au BufNewFile,BufRead *.action setf privoxy
802794
endif
803795

804-
if !has_key(g:polyglot_is_disabled, 'proc')
805-
au BufNewFile,BufRead *.pc setf proc
806-
endif
807-
808796
if !has_key(g:polyglot_is_disabled, 'obj')
809797
au BufNewFile,BufRead *.obj setf obj
810798
endif
@@ -877,10 +865,6 @@ if !has_key(g:polyglot_is_disabled, 'pike')
877865
au BufNewFile,BufRead *.pike,*.pmod setf pike
878866
endif
879867

880-
if !has_key(g:polyglot_is_disabled, 'pcmk')
881-
au BufNewFile,BufRead *.pcmk setf pcmk
882-
endif
883-
884868
if !has_key(g:polyglot_is_disabled, 'pdf')
885869
au BufNewFile,BufRead *.pdf setf pdf
886870
endif
@@ -1062,10 +1046,6 @@ if !has_key(g:polyglot_is_disabled, 'mel')
10621046
au BufNewFile,BufRead *.mel setf mel
10631047
endif
10641048

1065-
if !has_key(g:polyglot_is_disabled, 'map')
1066-
au BufNewFile,BufRead *.map setf map
1067-
endif
1068-
10691049
if !has_key(g:polyglot_is_disabled, 'maple')
10701050
au BufNewFile,BufRead *.mpl,*.mv,*.mws setf maple
10711051
endif
@@ -1316,10 +1296,6 @@ if !has_key(g:polyglot_is_disabled, 'icon')
13161296
au BufNewFile,BufRead *.icn setf icon
13171297
endif
13181298

1319-
if !has_key(g:polyglot_is_disabled, 'httest')
1320-
au BufNewFile,BufRead *.htb,*.htt setf httest
1321-
endif
1322-
13231299
if !has_key(g:polyglot_is_disabled, 'hb')
13241300
au BufNewFile,BufRead *.hb setf hb
13251301
endif
@@ -1452,10 +1428,6 @@ if !has_key(g:polyglot_is_disabled, 'fetchmail')
14521428
au BufNewFile,BufRead {.,}fetchmailrc setf fetchmail
14531429
endif
14541430

1455-
if !has_key(g:polyglot_is_disabled, 'factor')
1456-
au BufNewFile,BufRead *.factor setf factor
1457-
endif
1458-
14591431
if !has_key(g:polyglot_is_disabled, 'fan')
14601432
au BufNewFile,BufRead *.fan,*.fwt setf fan
14611433
endif
@@ -1704,10 +1676,6 @@ if !has_key(g:polyglot_is_disabled, 'chaiscript')
17041676
au BufNewFile,BufRead *.chai setf chaiscript
17051677
endif
17061678

1707-
if !has_key(g:polyglot_is_disabled, 'cfengine')
1708-
au BufNewFile,BufRead cfengine.conf setf cfengine
1709-
endif
1710-
17111679
if !has_key(g:polyglot_is_disabled, 'cdrdaoconf')
17121680
au BufNewFile,BufRead */etc/cdrdao.conf,*/etc/default/cdrdao,*/etc/defaults/cdrdao,{.,}cdrdao setf cdrdaoconf
17131681
endif

autoload/polyglot/sleuth.vim

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ let s:globs = {
6666
\ 'cdrdaoconf': '.cdrdao',
6767
\ 'cdrtoc': '*.toc',
6868
\ 'cf': '*.cfm,*.cfi,*.cfc',
69-
\ 'cfengine': 'cfengine.conf',
7069
\ 'cfg': '*.cfg,*.hgrc,*hgrc',
7170
\ 'ch': '*.chf',
7271
\ 'chaiscript': '*.chai',
@@ -162,7 +161,6 @@ let s:globs = {
162161
\ 'exim': 'exim.conf',
163162
\ 'expect': '*.exp',
164163
\ 'exports': 'exports',
165-
\ 'factor': '*.factor',
166164
\ 'falcon': '*.fal',
167165
\ 'fan': '*.fan,*.fwt',
168166
\ 'fbs': '*.fbs',
@@ -235,9 +233,7 @@ let s:globs = {
235233
\ 'html.twig': '*.twig',
236234
\ 'htmldjango': '*.jinja,*.j2,*.jinja2',
237235
\ 'htmlm4': '*.html.m4',
238-
\ 'httest': '*.htt,*.htb',
239236
\ 'hxml': '*.hxml',
240-
\ 'i3config': '*.i3config,*.i3.config,*.swayconfig,*.sway.config,i3.config,sway.config',
241237
\ 'ibasic': '*.iba,*.ibi',
242238
\ 'icalendar': '*.ics',
243239
\ 'icemenu': '',
@@ -321,7 +317,6 @@ let s:globs = {
321317
\ 'mako': '*.mako,*.mao',
322318
\ 'mallard': '*.page',
323319
\ 'manconf': 'man.config',
324-
\ 'map': '*.map',
325320
\ 'maple': '*.mv,*.mpl,*.mws',
326321
\ 'markdown': '*.md,*.markdown,*.mdown,*.mdwn,*.mkd,*.mkdn,*.mkdown,*.ronn,*.scd,*.workbook,contents.lr',
327322
\ 'markdown.mdx': '*.mdx',
@@ -395,7 +390,6 @@ let s:globs = {
395390
\ 'pascal': '*.pas,*.pp,*.dpr,*.lpr',
396391
\ 'passwd': '',
397392
\ 'pccts': '*.g',
398-
\ 'pcmk': '*.pcmk',
399393
\ 'pdf': '*.pdf',
400394
\ 'perl': '*.pl,*.al,*.cgi,*.fcgi,*.perl,*.ph,*.plx,*.pm,*.psgi,*.t,Makefile.PL,Rexfile,ack,cpanfile,example.gitolite.rc,.gitolite.rc',
401395
\ 'pest': '*.pest',
@@ -420,7 +414,6 @@ let s:globs = {
420414
\ 'ppd': '*.ppd',
421415
\ 'ppwiz': '*.it,*.ih',
422416
\ 'privoxy': '*.action',
423-
\ 'proc': '*.pc',
424417
\ 'procmail': '.procmail,.procmailrc',
425418
\ 'prolog': '*.pl,*.pro,*.prolog,*.yap,*.pdb',
426419
\ 'promela': '*.pml',
@@ -430,7 +423,6 @@ let s:globs = {
430423
\ 'ps1xml': '*.ps1xml',
431424
\ 'psf': '*.psf',
432425
\ 'pug': '*.jade,*.pug',
433-
\ 'pullrequest': 'PULLREQ_EDITMSG',
434426
\ 'puppet': '*.pp,Modulefile',
435427
\ 'purescript': '*.purs',
436428
\ 'pyrex': '*.pyx,*.pxd',
@@ -531,6 +523,7 @@ let s:globs = {
531523
\ 'svelte': '*.svelte',
532524
\ 'svg': '*.svg',
533525
\ 'svn': 'svn-commit*.tmp',
526+
\ 'swayconfig': '*.swayconfig,*.sway.config,swayconfig',
534527
\ 'swift': '*.swift',
535528
\ 'swiftgyb': '*.swift.gyb',
536529
\ 'sxhkdrc': '*.sxhkdrc,sxhkdrc',
@@ -636,7 +629,6 @@ let s:globs = {
636629
\ 'zephir': '*.zep',
637630
\ 'zig': '*.zig,*.zir',
638631
\ 'zimbu': '*.zu',
639-
\ 'zimbutempl': '*.zut',
640632
\ 'zir': '*.zir',
641633
\ 'zsh': '*.zsh,.zshrc,.zshenv,.zlogin,.zprofile,.zlogout,.zlog*,.zcompdump*,.zfbfmarks,.zsh*',
642634
\}

compiler/lilypond.vim

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'compiler/lilypond.vim')
2+
finish
3+
endif
4+
5+
" LilyPond compiler file
6+
" Language: LilyPond
7+
" Maintainer: Heikki Junes <[email protected]>
8+
" License: This file is part of LilyPond, the GNU music typesetter.
9+
"
10+
" Copyright (C) 2004, 2007 Heikki Junes <[email protected]>
11+
"
12+
" LilyPond is free software: you can redistribute it and/or modify
13+
" it under the terms of the GNU General Public License as published by
14+
" the Free Software Foundation, either version 3 of the License, or
15+
" (at your option) any later version.
16+
"
17+
" LilyPond is distributed in the hope that it will be useful,
18+
" but WITHOUT ANY WARRANTY; without even the implied warranty of
19+
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+
" GNU General Public License for more details.
21+
"
22+
" You should have received a copy of the GNU General Public License
23+
" along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
24+
"
25+
" Last Change: 2007 Aug 19
26+
"
27+
" Installed As: vim/compiler/lilypond.vim
28+
"
29+
" Only load this indent file when no other was loaded.
30+
if exists("current_compiler")
31+
finish
32+
endif
33+
let current_compiler = "lilypond"
34+
35+
" default make
36+
setlocal makeprg=lilypond\ $*
37+
" errorformat for lily (with columns) and gcc
38+
" (how to see multiple-line error messages?)
39+
setlocal errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m
40+
"

ftplugin/lilypond.vim

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
if polyglot#init#is_disabled(expand('<sfile>:p'), 'lilypond', 'ftplugin/lilypond.vim')
2+
finish
3+
endif
4+
5+
" LilyPond filetype plugin
6+
" Language: LilyPond (ft=ly)
7+
" Maintainer: Heikki Junes <[email protected]>
8+
" License: This file is part of LilyPond, the GNU music typesetter.
9+
"
10+
" Copyright (C) 1998, 2002, 2004, 2010, 2016
11+
" Han-Wen Nienhuys <[email protected]>
12+
"
13+
" LilyPond is free software: you can redistribute it and/or modify
14+
" it under the terms of the GNU General Public License as published by
15+
" the Free Software Foundation, either version 3 of the License, or
16+
" (at your option) any later version.
17+
"
18+
" LilyPond is distributed in the hope that it will be useful,
19+
" but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
" GNU General Public License for more details.
22+
"
23+
" You should have received a copy of the GNU General Public License
24+
" along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
25+
"
26+
" Last Change: 2016 May 21
27+
"
28+
" Installed As: vim/ftplugin/lilypond.vim
29+
" Uses Generated File: vim/syntax/lilypond-words.vim
30+
"
31+
" Only do this when not done yet for this buffer
32+
if exists("b:did_ftplugin")
33+
finish
34+
endif
35+
36+
" Don't load another plugin for this buffer
37+
let b:did_ftplugin = 1
38+
39+
setlocal autoindent
40+
setlocal shiftwidth=2
41+
"
42+
" some handy key mappings
43+
"
44+
" <F4> save & make and play midi with timidity
45+
noremap <buffer> <F4> :w<Return>:setl makeprg=lilypond\ \"%<\"<Return>:make<Return>:!timidity "%<.midi"<Return>
46+
"
47+
" <F5> save & make
48+
noremap <buffer> <F5> :w<Return>:setl makeprg=lilypond\ \"%<\"<Return>:make<Return>
49+
"
50+
" <F6> view pdf with ghostview
51+
noremap <buffer> <F6> :!gv --watch "%<.pdf" &<Return>
52+
"
53+
" <F7> prev error
54+
noremap <buffer> <F7> :cp<Return>
55+
"
56+
" <F8> next error
57+
noremap <buffer> <F8> :cn<Return>
58+
"
59+
" <F9> make
60+
noremap <buffer> <F9> :w<Return>:setl makeprg=make\ -k<Return>:make<Return>
61+
"
62+
" <F10> menu
63+
source $VIMRUNTIME/menu.vim
64+
setlocal wildmenu
65+
setlocal cpo-=<
66+
setlocal wcm=<C-Z>
67+
noremap <buffer> <F10> :emenu <C-Z>
68+
"
69+
" <F12> comment region
70+
noremap <buffer> <F12> :g!/%.*/normal 0i%<Return>
71+
"
72+
" <S-F12> remove comments in region
73+
noremap <buffer> <S-F12> :g/%.*/normal 0x<Return>
74+
"
75+
" Completions in Insert/Replace-mode with <Ctrl-N>
76+
setlocal dictionary-=$VIM/syntax/lilypond-words dictionary+=$VIM/syntax/lilypond-words
77+
setlocal complete-=k complete+=k
78+
"
79+
setlocal showmatch

ftplugin/swayconfig.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if polyglot#init#is_disabled(expand('<sfile>:p'), 'sway', 'ftplugin/swayconfig.vim')
2+
finish
3+
endif
4+
5+
setlocal commentstring=#\ %s

ftplugin/toml.vim

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
if polyglot#init#is_disabled(expand('<sfile>:p'), 'toml', 'ftplugin/toml.vim')
2+
finish
3+
endif
4+
5+
" File: ftplugin/toml.vim
6+
" Author: Kevin Ballard <[email protected]>
7+
" Description: FileType Plugin for Toml
8+
" Last Change: Feb 12, 2019
9+
10+
if exists('b:did_ftplugin')
11+
finish
12+
endif
13+
let b:did_ftplugin = 1
14+
15+
let s:save_cpo = &cpo
16+
set cpo&vim
17+
let b:undo_ftplugin = 'setlocal commentstring< comments<'
18+
19+
setlocal commentstring=#\ %s
20+
setlocal comments=:#
21+
22+
let &cpo = s:save_cpo
23+
unlet s:save_cpo
24+
25+
" vim: set et sw=4 ts=4:

0 commit comments

Comments
 (0)