1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00

disable colors for ipython repl (#4134)

This commit is contained in:
Jozsef Lazar 2021-03-16 05:17:19 +01:00 committed by GitHub
parent 1ca32fce79
commit 618dd100c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ function! SpaceVim#layers#lang#python#config() abort
call SpaceVim#mapping#space#regesit_lang_mappings('python', function('s:language_specified_mappings'))
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')
call SpaceVim#plugins#repl#reg('python', 'ipython --no-term-title --colors=NoColor')
elseif executable('python')
call SpaceVim#plugins#repl#reg('python', ['python', '-i'])
endif

View File

@ -56,7 +56,7 @@ function! SpaceVim#plugins#repl#send(type, ...) abort
if !exists('s:job_id')
echom('Please start REPL via the key binding "SPC l s i" first.')
elseif s:job_id == 0
echom('please retart the REPL')
echom('please restart the REPL')
else
if a:type ==# 'line'
call s:JOB.send(s:job_id, [getline('.'), ''])