mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
provider/pythonx: fix grammar with error
This commit is contained in:
parent
75db0c37a7
commit
905f34cf30
@ -55,7 +55,7 @@ function! s:check_interpreter(prog, ver, skip) abort
|
||||
return [1, '', '']
|
||||
endif
|
||||
|
||||
" Load neovim module check
|
||||
" Try to load neovim module, and output Python version.
|
||||
let ver = system(a:prog . ' -c ' .
|
||||
\ '''import sys; sys.stdout.write(str(sys.version_info[0]) + '.
|
||||
\ '"." + str(sys.version_info[1])); '''.
|
||||
@ -63,6 +63,9 @@ function! s:check_interpreter(prog, ver, skip) abort
|
||||
\ '''import pkgutil; exit(pkgutil.get_loader("neovim") is None)''':
|
||||
\ '''import importlib; exit(importlib.find_loader("neovim") is None)''')
|
||||
\ )
|
||||
return [!v:shell_error, 'Python'.a:ver.' interpreter have not neovim module.', ver]
|
||||
if v:shell_error
|
||||
return [0, 'Python'.a:ver.' interpreter ('.a:prog.') has no neovim module installed.', ver]
|
||||
endif
|
||||
return [1, '', ver]
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user