1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-09 13:31:31 +01:00

vim: do not use fixers on .git dir patches

This commit is contained in:
bretello 2024-06-29 10:53:41 +02:00
parent daf8e73f1d
commit 28fae7b8ce
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -87,10 +87,6 @@ syntax match jsonComment "\(/\*\)\|\(\*/\)"
hi def link jsonComment Comment hi def link jsonComment Comment
augroup dotgit_diffs
au BufRead .git/*.diff let b:ale_fix_on_save=0
augroup END
augroup dvc augroup dvc
au BufRead dvc.yaml let b:ale_fix_on_save=0 au BufRead dvc.yaml let b:ale_fix_on_save=0
au BufRead *.dvc let b:ale_fix_on_save=0 au BufRead *.dvc let b:ale_fix_on_save=0
@ -135,6 +131,8 @@ augroup dotgit
" set a marker to avoid returning to the previous position in .git folders " set a marker to avoid returning to the previous position in .git folders
" (avoids returning to previous position for COMMIT_EDITMSG etc ) " (avoids returning to previous position for COMMIT_EDITMSG etc )
au BufReadPost */.git/* let b:dotgitFolder = 1 au BufReadPost */.git/* let b:dotgitFolder = 1
" do not apply fixers to patches
au BufReadPost .git/*.diff let b:ale_fix_on_save=0
augroup END augroup END
" Bash like keys for the command line " Bash like keys for the command line