mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
only perl 5.22+ is supported
This commit is contained in:
@@ -11,6 +11,12 @@ function! provider#perl#Detect() abort
|
||||
return ''
|
||||
endif
|
||||
|
||||
" if perl is available, make sure we have 5.22+
|
||||
call system([prog, '-e', 'use v5.22'])
|
||||
if v:shell_error
|
||||
return ''
|
||||
endif
|
||||
|
||||
" if perl is available, make sure the required module is available
|
||||
call system([prog, '-W', '-MNeovim::Ext', '-e', ''])
|
||||
return v:shell_error ? '' : prog
|
||||
|
||||
Reference in New Issue
Block a user