[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
1 changed files with 7 additions and 0 deletions

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