1
0
Fork 0

Adding upstream version 0.20200629.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-06 23:26:10 +01:00
parent 86ec2cb15a
commit fced2a7e75
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
6 changed files with 122 additions and 0 deletions

11
ftdetect/nftables.vim Normal file
View file

@ -0,0 +1,11 @@
function! s:DetectFiletype()
if getline(1) =~# '^#!\s*\%\(/\S\+\)\?/\%\(s\)\?bin/\%\(env\s\+\)\?nft\>'
setfiletype nftables
endif
endfunction
augroup nftables
autocmd!
autocmd BufRead,BufNewFile * call s:DetectFiletype()
autocmd BufRead,BufNewFile *.nft,nftables.conf setfiletype nftables
augroup END