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:
parent
f56854c5d7
commit
3a3272353d
@ -86,8 +86,12 @@ function! SpaceVim#layers#lang#python#config() abort
|
|||||||
call SpaceVim#layers#edit#add_ft_head_tamplate('python', s:python_file_head)
|
call SpaceVim#layers#edit#add_ft_head_tamplate('python', s:python_file_head)
|
||||||
if executable('ipython')
|
if executable('ipython')
|
||||||
call SpaceVim#plugins#repl#reg('python', 'ipython --no-term-title --colors=NoColor')
|
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')
|
elseif executable('python')
|
||||||
call SpaceVim#plugins#repl#reg('python', ['python', '-i'])
|
call SpaceVim#plugins#repl#reg('python', ['python', '-i'])
|
||||||
|
elseif executable('python3')
|
||||||
|
call SpaceVim#plugins#repl#reg('python', ['python3', '-i'])
|
||||||
endif
|
endif
|
||||||
let g:neomake_python_enabled_makers = ['python']
|
let g:neomake_python_enabled_makers = ['python']
|
||||||
let g:neomake_python_python_exe = s:python_interpreter
|
let g:neomake_python_python_exe = s:python_interpreter
|
||||||
|
Loading…
Reference in New Issue
Block a user