diff --git a/nvim/ftdetect/dotfiles.vim b/nvim/ftdetect/dotfiles.vim new file mode 100644 index 0000000..ff8ab5e --- /dev/null +++ b/nvim/ftdetect/dotfiles.vim @@ -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