Skip to content

Commit c4e50b4

Browse files
committed
Update
1 parent 839447b commit c4e50b4

File tree

10 files changed

+150
-417
lines changed

10 files changed

+150
-417
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
102102
- [hive](https://github.com/zebradil/hive.vim) (HiveQL syntax highlighting for q, hql and ql files)
103103
- [hjson](https://github.com/hjson/vim-hjson) (Syntax highlighting for hjson files)
104104
- [html5](https://github.com/othree/html5.vim)
105-
- [i3/sway](https://github.com/jamespeapen/swayconfig.vim/tree/i3sway) (Syntax highlighting for i3.config, i3config, sway.config and swayconfig files)
106105
- [icalendar](https://github.com/chutzpah/icalendar.vim) (Syntax highlighting for ics files)
107106
- [idris2](https://github.com/edwinb/idris2-vim) (Syntax highlighting for idr, ipkg and lidr files)
108107
- [idris](https://github.com/idris-hackers/idris-vim) (Idris syntax highlighting for idr and lidr files)
@@ -118,7 +117,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
118117
- [jst](https://github.com/briancollins/vim-jst) (EJS syntax highlighting for ejs, ect and jst files)
119118
- [jsx](https://github.com/MaxMEllon/vim-jsx-pretty) (Syntax highlighting for jsx files)
120119
- [julia](https://github.com/JuliaEditorSupport/julia-vim) (Julia syntax highlighting for jl files)
121-
- [just](https://github.com/NoahTheDuke/vim-just) (Syntax highlighting for justfile and *.just files)
120+
- [just](https://github.com/NoahTheDuke/vim-just) (Syntax highlighting for just files)
122121
- [kotlin](https://github.com/udalov/kotlin-vim) (Kotlin syntax highlighting for kt, ktm and kts files)
123122
- [ledger](https://github.com/ledger/vim-ledger) (Syntax highlighting for ldg, ledger and journal files)
124123
- [lilypond](https://github.com/anowlcalledjosh/vim-lilypond) (LilyPond syntax highlighting for ly and ily files)
@@ -182,6 +181,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
182181
- [svelte](https://github.com/leafOfTree/vim-svelte-plugin) (Svelte syntax highlighting for svelte files)
183182
- [svg-indent](https://github.com/jasonshell/vim-svg-indent)
184183
- [svg](https://github.com/vim-scripts/svg.vim) (SVG syntax highlighting for svg files)
184+
- [sway](https://github.com/jamespeapen/swayconfig.vim/tree/i3sway) (Syntax highlighting for i3config, i3.config, swayconfig and sway.config files)
185185
- [swift](https://github.com/keith/swift.vim) (Swift syntax highlighting for swift files)
186186
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (Syntax highlighting for sxhkdrc files)
187187
- [systemd](https://github.com/wgwoods/vim-systemd-syntax) (Syntax highlighting for automount, dnssd, link, mount, netdev and 9 more files)

after/ftplugin/just.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if polyglot#init#is_disabled(expand('<sfile>:p'), 'just', 'after/ftplugin/just.vim')
2+
finish
3+
endif
4+
5+
" Vim ftplugin file
6+
" Language: Justfile
7+
" Maintainer: Noah Bogart <[email protected]>
8+
" URL: https://github.com/NoahTheDuke/vim-just.git
9+
" Last Change: 2021 May 19
10+
11+
setlocal iskeyword+=-

autoload/polyglot/init.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,12 @@ if !has_key(g:polyglot_is_disabled, 'nftables')
177177
au BufNewFile,BufRead *.nft,*/nftables.conf setf nftables
178178
endif
179179

180+
if !has_key(g:polyglot_is_disabled, 'just')
181+
au BufNewFile,BufRead *.just,justfile setf just
182+
endif
183+
180184
if !has_key(g:polyglot_is_disabled, 'sway')
181-
au BufNewFile,BufRead *sway/config setf sway
185+
au BufNewFile,BufRead *.i3.config,*.i3config,*.sway.config,*.swayconfig,*sway/config,i3.config,sway.config setf i3config
182186
endif
183187

184188
if !has_key(g:polyglot_is_disabled, 'hjson')
@@ -2293,10 +2297,6 @@ if !has_key(g:polyglot_is_disabled, 'icalendar')
22932297
au BufNewFile,BufRead *.ics setf icalendar
22942298
endif
22952299

2296-
if !has_key(g:polyglot_is_disabled, 'i3')
2297-
au BufNewFile,BufRead *.i3.config,*.i3config,{.,}i3.config,{.,}i3config,i3.config,i3config setf i3config
2298-
endif
2299-
23002300
if !has_key(g:polyglot_is_disabled, 'hive')
23012301
au BufNewFile,BufRead *.hql,*.q,*.ql setf hive
23022302
endif

autoload/polyglot/sleuth.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ let s:globs = {
237237
\ 'htmlm4': '*.html.m4',
238238
\ 'httest': '*.htt,*.htb',
239239
\ 'hxml': '*.hxml',
240-
\ 'i3config': '*.i3.config,*.i3config,i3.config,i3config,.i3.config,.i3config',
240+
\ 'i3config': '*.i3config,*.i3.config,*.swayconfig,*.sway.config,i3.config,sway.config',
241241
\ 'ibasic': '*.iba,*.ibi',
242242
\ 'icalendar': '*.ics',
243243
\ 'icemenu': '',
@@ -271,6 +271,7 @@ let s:globs = {
271271
\ 'jsp': '*.jsp',
272272
\ 'jst': '*.ejs,*.ect,*.jst',
273273
\ 'julia': '*.jl',
274+
\ 'just': '*.just,justfile',
274275
\ 'kconfig': 'Kconfig,Kconfig.debug,Kconfig.*',
275276
\ 'kivy': '*.kv',
276277
\ 'kix': '*.kix',
@@ -528,7 +529,6 @@ let s:globs = {
528529
\ 'svelte': '*.svelte',
529530
\ 'svg': '*.svg',
530531
\ 'svn': 'svn-commit*.tmp',
531-
\ 'sway': '',
532532
\ 'swift': '*.swift',
533533
\ 'swiftgyb': '*.swift.gyb',
534534
\ 'sxhkdrc': '*.sxhkdrc,sxhkdrc',

ftplugin/i3config.vim

Lines changed: 0 additions & 5 deletions
This file was deleted.

ftplugin/sway.vim

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)