summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-06-09 20:58:38 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-06-09 20:58:38 +0200
commitdec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef (patch)
treed9a30f5e111007bf88189e1fbfb9722570790854
parent6e0702bd6672f3882b0ce2ea9d254a8d109eb807 (diff)
downloadvim-polyglot-dec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef.tar.gz
vim-polyglot-dec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef.zip
Update
-rw-r--r--README.md4
-rw-r--r--autoload/polyglot/init.vim4
-rw-r--r--autoload/polyglot/sleuth.vim1
-rw-r--r--tests/filetypes.vim1
4 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index 37d87994..9a4ce558 100644
--- a/README.md
+++ b/README.md
@@ -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-->604<!--/Package Count--> packages it consists of.
+- It **installs and updates 120+ times faster** than the <!--Package Count-->605<!--/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)
@@ -132,7 +132,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr
- [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)
-- [nftables](https://github.com/nfnty/vim-nftables) (Syntax highlighting for nftables config files)
+- [nftables](https://github.com/nfnty/vim-nftables) (Syntax highlighting for nft files)
- [nginx](https://github.com/chr4/nginx.vim) (Nginx syntax highlighting for nginx, nginxconf and vhost files)
- [nim](https://github.com/zah/nim.vim) (Nim syntax highlighting for nim, nim.cfg, nimble, nimrod and nims files)
- [nix](https://github.com/LnL7/vim-nix) (Nix syntax highlighting for nix files)
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim
index ac3bf8e8..d294ea4a 100644
--- a/autoload/polyglot/init.vim
+++ b/autoload/polyglot/init.vim
@@ -173,6 +173,10 @@ if !has_key(g:polyglot_is_disabled, 'openscad')
au BufNewFile,BufRead *.scad setf openscad
endif
+if !has_key(g:polyglot_is_disabled, 'nftables')
+ au BufNewFile,BufRead *.nft,*/nftables.conf setf nftables
+endif
+
if !has_key(g:polyglot_is_disabled, 'sway')
au BufNewFile,BufRead *sway/config setf sway
endif
diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim
index c8f09297..bcd0e5e8 100644
--- a/autoload/polyglot/sleuth.vim
+++ b/autoload/polyglot/sleuth.vim
@@ -360,6 +360,7 @@ let s:globs = {
\ 'ncf': '*.ncf',
\ 'neomuttrc': 'Neomuttrc,.neomuttrc*,neomuttrc*,Neomuttrc*',
\ 'netrc': '.netrc',
+ \ 'nftables': '*.nft',
\ 'nginx': '*.nginx,*.nginxconf,*.vhost,nginx.conf,nginx*.conf,*nginx.conf',
\ 'nim': '*.nim,*.nim.cfg,*.nimble,*.nimrod,*.nims,nim.cfg',
\ 'ninja': '*.ninja',
diff --git a/tests/filetypes.vim b/tests/filetypes.vim
index 29b457f2..ba1c1dec 100644
--- a/tests/filetypes.vim
+++ b/tests/filetypes.vim
@@ -650,6 +650,7 @@ call TestFiletype('jsonc')
call TestFiletype('gleam')
call TestFiletype('hjson')
call TestFiletype('sway')
+call TestFiletype('nftables')
call TestFiletype('openscad')
" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE