From 5450849ad7eec84bb025a7c6bcb0711aaf597930 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Tue, 18 Jan 2022 10:06:39 +0100 Subject: [PATCH] [nvim] Add ftdetect for PKGBUILD files --- nvim/ftdetect/dotfiles.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nvim/ftdetect/dotfiles.vim 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