mirror of
https://github.com/raimon49/requirements.txt.vim.git
synced 2025-12-06 10:04:23 +08:00
Support filename of the Constraints File
This commit is contained in:
@@ -22,6 +22,10 @@ function! Requirements_matched_filename(filename)
|
||||
return 1
|
||||
endif
|
||||
|
||||
if a:filename =~# '\v.constraints\.(txt|in)$'
|
||||
return 1
|
||||
endif
|
||||
|
||||
if len(g:requirements#detect_filename_pattern)
|
||||
\ && a:filename =~# g:requirements#detect_filename_pattern
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user