1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:00:04 +08:00

Adapt for ipython3 and python3 commands (#4173)

This commit is contained in:
YABUKI Yukiharu 2021-04-05 20:19:21 +09:00 committed by GitHub
parent f56854c5d7
commit 3a3272353d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,8 +86,12 @@ function! SpaceVim#layers#lang#python#config() abort
call SpaceVim#layers#edit#add_ft_head_tamplate('python', s:python_file_head)
if executable('ipython')
call SpaceVim#plugins#repl#reg('python', 'ipython --no-term-title --colors=NoColor')
elseif executable('ipython3')
call SpaceVim#plugins#repl#reg('python', 'ipython3 --no-term-title --colors=NoColor')
elseif executable('python')
call SpaceVim#plugins#repl#reg('python', ['python', '-i'])
elseif executable('python3')
call SpaceVim#plugins#repl#reg('python', ['python3', '-i'])
endif
let g:neomake_python_enabled_makers = ['python']
let g:neomake_python_python_exe = s:python_interpreter