[nvim] Add ftdetect for PKGBUILD files

This commit is contained in:
Alyxia Sother 2022-01-18 10:06:39 +01:00
parent b6c1ac9944
commit 5450849ad7
No known key found for this signature in database
GPG key ID: 355968D14144B739

View file

@ -0,0 +1,7 @@
function! s:genSrcInfo()
:call system('rm -rf .SRCINFO; makepkg --printsrcinfo > .SRCINFO')
endfunction
augroup dotfilesftdetect
autocmd BufWritePost PKGBUILD :call s:genSrcInfo()
augroup END