mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] Add ftdetect for PKGBUILD files
This commit is contained in:
parent
b6c1ac9944
commit
5450849ad7
1 changed files with 7 additions and 0 deletions
7
nvim/ftdetect/dotfiles.vim
Normal file
7
nvim/ftdetect/dotfiles.vim
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue