Neovim wrapper project to install as a script
Project description
Wrapper package to install neovim with an executable.
This allows to install neovim with pipx:
pipx install --python=$(which python2) neovim-sh
pipx install --python=$(which python3) neovim-sh
To use in neovim, simply set python host program variables:
function! s:SetPythonHostProg(job_id, data, event)
if (len(a:data[0]) > 0)
execute(a:data[0])
call append(line('$'), a:data[0])
endif
endfunction
" jobstart is only in neovim
if exists("*jobstart")
let _ = jobstart(['neovim2.sh', '--vim'], {'on_stdout': function('s:SetPythonHostProg')})
let _ = jobstart(['neovim3.sh', '--vim'], {'on_stdout': function('s:SetPythonHostProg')})
endif
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neovim-sh-0.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for neovim_sh-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bb1e484ebdbecb0fe3e79e2eb7094615c007ecfc02d441be947a87bc5aa583 |
|
MD5 | 2469f1f01c377a8b3444e36d72203bdb |
|
BLAKE2b-256 | 2195ad3a82aaeb1f62897f8e2dd702a1a90c2a5597e2cccd2aeb187223e37b7c |