Skip to content

Commit dec65ba

Browse files
committed
Update
1 parent 6e0702b commit dec65ba

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 2 additions & 2 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-->604<!--/Package Count--> packages it consists of.
10+
- It **installs and updates 120+ times faster** than the <!--Package Count-->605<!--/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)
@@ -132,7 +132,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
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)
135-
- [nftables](https://github.com/nfnty/vim-nftables) (Syntax highlighting for nftables config files)
135+
- [nftables](https://github.com/nfnty/vim-nftables) (Syntax highlighting for nft files)
136136
- [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files)
137137
- [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files)
138138
- [nix](https://github.com/LnL7/vim-nix) (Nix syntax highlighting for nix files)

autoload/polyglot/init.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ if !has_key(g:polyglot_is_disabled, 'openscad')
173173
au BufNewFile,BufRead *.scad setf openscad
174174
endif
175175

176+
if !has_key(g:polyglot_is_disabled, 'nftables')
177+
au BufNewFile,BufRead *.nft,*/nftables.conf setf nftables
178+
endif
179+
176180
if !has_key(g:polyglot_is_disabled, 'sway')
177181
au BufNewFile,BufRead *sway/config setf sway
178182
endif

autoload/polyglot/sleuth.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ let s:globs = {
360360
\ 'ncf': '*.ncf',
361361
\ 'neomuttrc': 'Neomuttrc,.neomuttrc*,neomuttrc*,Neomuttrc*',
362362
\ 'netrc': '.netrc',
363+
\ 'nftables': '*.nft',
363364
\ 'nginx': '*.nginx,*.nginxconf,*.vhost,nginx.conf,nginx*.conf,*nginx.conf',
364365
\ 'nim': '*.nim,*.nim.cfg,*.nimble,*.nimrod,*.nims,nim.cfg',
365366
\ 'ninja': '*.ninja',

tests/filetypes.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ call TestFiletype('jsonc')
650650
call TestFiletype('gleam')
651651
call TestFiletype('hjson')
652652
call TestFiletype('sway')
653+
call TestFiletype('nftables')
653654
call TestFiletype('openscad')
654655

655656
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE

0 commit comments

Comments
 (0)