summaryrefslogtreecommitdiffstats
path: root/autoload
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 /autoload
parent6e0702bd6672f3882b0ce2ea9d254a8d109eb807 (diff)
downloadvim-polyglot-dec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef.tar.gz
vim-polyglot-dec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef.zip
Update
Diffstat (limited to 'autoload')
-rw-r--r--autoload/polyglot/init.vim4
-rw-r--r--autoload/polyglot/sleuth.vim1
2 files changed, 5 insertions, 0 deletions
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',