New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for NeoVim #1287
Comments
@abstiles
will add variable
is fine, but
(in all cases: repeated for each segment function which bothers to use some interface with Vim) is not and I do not need tests to say that this would not work. The only alternative approach I can see is
, but as you see there will be a lag between when things needed from NeoVim are computed and when they are displayed. In this case it may though can appear that I can afford waiting until computed things are processed, so there will be no lag, but I am not sure. Rewrite is needed in any case. There is also an alternative where statusline function constantly computes things and sends them to powerline and powerline constantly sends back an updates to &statusline when they are ready, but this is no different regarding how segment functions need to be rewritten and this variant is rather not compatible with Vim. Some things in a list may be replaced with NeoVim events which is a bit faster. |
Is there not some way to at least get this working, even if it doesn't perform optimally? I tried bumping the version conditionals from
Instead of:
If I add a test for
So, I'm wondering exactly what features are broken and/or whether <=703 do currently work, and if so, how to properly force Powerline to use the older bindings with NeoVim. |
NeoVim does not support full Python API even from version 7.0. There is a patch for powerline which I used to get it working to have some performance measurements and it is more then just adding a few |
Oh right, ugly. Thanks for the links. |
I've noticed no new activity on this issue or the related Neovim issues. Are there simply irreconcilable differences between Neovim and Powerline such that there are no plans for Powerline to support Neovim? I'd like to know if you see any hope of resolving the problems here, or if I should give up my hope of using Powerline in Neovim. |
Might I add my vote for this feature as well? |
Is there a good alternative to powerline that works with neovim? |
@Phiche check out https://github.com/bling/vim-airline |
Nice! That works! Thanks @aarobc! |
Very hard to choose between neovim and powerline... |
@code-hunger vim-airline offers similar functionality to powerline and works fine with neovim. |
@kierun thanks, it seems to do quite the same job. |
The only downside with airline is you have to configure it apart from powerline and if you already use powerline in bash, weechat/irssi, tmux, etc... it is just a little annoying to do that. |
@Goddard Take a look at these: https://github.com/edkolev/promptline.vim Above projects generate scripts for bash, zsh, fish and tmux and the generated script is native code that doesn't call any external program like python. |
I'm making the switch to nvim, and would love to see Powerline support for it. |
Could you just stop spamming this bug report with useless "+1". Just use the "reaction" github feature on the first post. |
Likewise, you can go back and delete your "+1" comments to make this issue easier to follow. |
This variant also supports Neovim, ref powerline#1287.
This variant also supports Neovim, ref powerline#1287.
This variant also supports Neovim, ref powerline#1287.
This variant also supports Neovim, ref powerline#1287.
This variant also supports Neovim, ref powerline#1287.
This variant also supports Neovim, ref powerline#1287.
This variant also supports Neovim, ref powerline#1287.
nvim doesn't support powerline: powerline/powerline#1287
Sadly, there is no progress towards supporting NeoVim and looking at @ZyX-I original comments on this issue, I'm not very optimistic regarding the future. Perhaps NeoVim changed something regarding its python support in the meantime (which I don't know) so it would make sense to look at this again; if not and if they don't do so, I'm not very optimistic that NeoVim support will be added (at least by me) in the near future, sorry. Unrelated: I just removed the plethora of “+1” comments to make this issue somewhat more readable. |
Is there a way to hide this error at least? In my case i want to have both neovim an vim with powerline. |
You can try the following: In your |
Maybe making use of the pynvim package might add prospects? |
After a quick look at that project, while it does look promising, getting powerline to work still seems to require some effort. (I'd be happy to be proven wrong though.) |
It's time to try new things this updates my dotfiles to use neovim NOTE: Powerline is broken https://www.reddit.com/r/neovim/comments/nlgva2/neovim_and_powerline/ powerline/powerline#1287
I am not python developer so no env for me I just wanted powerline for tmux but not for nvim so there is this woraround found this |
Can this be made explicit in the docs? There's no indication that NeoVim doesn't work. So it's easy to spend a long time hunting down errors. |
I understand that this may not be immediately feasible due to the still-unstable nature of NeoVim, but I'd like to make the request anyway.
First, powerline fails when it tries to access the bindeval method which NeoVim does not support. I attempted to do some initial debugging, and discovered that Powerline relies on Vim's 7.4 Python API when it detects a version greater than 703. NeoVim reports as version 704 right now, but has not added support for Vim's 7.4 Python API (see discussion on neovim/neovim#1898), which apparently includes the bindeval method. After attempting to work around this by modifying powerline's version checking, I'm still seeing the following issue:
I'm not sure what's going on here that it cannot find "powerline". Executing
:py import sys; print sys.path
seems to indicate that the right paths can be found, and I can execute:py import powerline
without complaint.For the record, I'm running the latest NeoVim (NVIM 0.0.0-alpha+201501262108) on Mac OS 10.10, with Python 2.7 installed through homebrew, and powerline 2.0 installed through pip.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: