Skip to content

Commit

Permalink
Remove augroup
Browse files Browse the repository at this point in the history
see bullet 2. under :h ftdetect
  • Loading branch information
scauligi authored and Freed-Wu committed Jul 15, 2024
1 parent 7ff1331 commit ca7ddb6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ftdetect/requirements.vim
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,8 @@ function! Requirements_matched_filename(filename)
return 0
endfunction

augroup requirements
autocmd!
au BufNewFile,BufRead *.{txt,in} if s:isRequirementsFile() | set ft=requirements | endif
au BufNewFile,BufRead *.pip set ft=requirements
au BufNewFile,BufRead * if !did_filetype() | call requirements#shebang() | endif
augroup END
au BufNewFile,BufRead *.{txt,in} if s:isRequirementsFile() | set ft=requirements | endif
au BufNewFile,BufRead *.pip set ft=requirements
au BufNewFile,BufRead * if !did_filetype() | call requirements#shebang() | endif

" vim: et sw=4 ts=4 sts=4:

0 comments on commit ca7ddb6

Please sign in to comment.