diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-18 23:31:31 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-18 23:31:31 +0200 |
commit | 0df1bfa0c5f3efb6688566d5656a330034772037 (patch) | |
tree | a5c04d333061876bc3ecc2ba4b93e9043d0b8270 /ftdetect/polyglot.vim | |
parent | f7302d92629d29eb970c3d5fbb2f76ae6d6cf50a (diff) | |
download | vim-polyglot-4.5.0.tar.gz vim-polyglot-4.5.0.zip |
Add requirements.txt support, closes #507v4.5.0
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r-- | ftdetect/polyglot.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 24b77afb..c069703f 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1160,6 +1160,13 @@ if index(g:polyglot_disabled, 'jq') == -1 au BufNewFile,BufRead {.,}jqrc set ft=jq endif +if index(g:polyglot_disabled, 'requirements') == -1 + au BufNewFile,BufRead *.pip set ft=requirements + au BufNewFile,BufRead *require.{txt,in} set ft=requirements + au BufNewFile,BufRead *requirements.{txt,in} set ft=requirements + au BufNewFile,BufRead constraints.{txt,in} set ft=requirements +endif + " restore Vi compatibility settings let &cpo = s:cpo_save unlet s:cpo_save
\ No newline at end of file |