1
0
Fork 0

Adding upstream version 0.20200629.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-25 22:20:31 +02:00
parent 06e09e8f72
commit ab07386d8b
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
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