Open aasutossh opened 4 years ago
PR welcome
@chemzqm I might want to take this up, I haven't looked through any code yet of the project. Could you give some pointers on where to start looking?
A workaround is to hack the string in the airline extension, replacing airline#extensions#coc#get_status()
by the following. It's only operational on conda environments.
function! airline#extensions#coc#get_status() abort
" Shorten text for windows < 91 characters
let venv = airline#util#shorten(get(g:, 'coc_status', ''), 91, 9)
" Shorten 'Python 3.8.5 64-bit ('MYENV': conda)' to 'MYENV'
if venv =~ "conda"
let venv = substitute(venv, "Py.*('\\(.*\\)':.*", "\\1", "")
endif
return venv
endfunction
Hi, I am using airline and conda to manage envs. The python interpreter looks like this
Python 3.8.2 64-bit ('my-awesome-project': conda)
. Which is very long (invsp
mode it takes almost all space in the statusline). I'd like to only havemy-awesome-project: 3.8.2
or similar in the line.Is this doable now? Thank you.