Skip to content
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

Issues with vim-airline #33

Open
flyingfisch opened this issue Feb 27, 2016 · 19 comments
Open

Issues with vim-airline #33

flyingfisch opened this issue Feb 27, 2016 · 19 comments
Assignees

Comments

@flyingfisch
Copy link

It looks like maybe nyaovim doesn't know what to do with background colors or something? This is what my editor looks like in nyaovim:

nyaovim

and in terminal:

terminal

@rhysd rhysd added the bug label Feb 27, 2016
@rhysd rhysd self-assigned this Feb 27, 2016
@bpinto
Copy link

bpinto commented Mar 16, 2016

I've had a similar issue with airline a couple weeks ago, the solution was to update airline and add the new airline-theme repository.

@flyingfisch
Copy link
Author

I'll try that when I get home, thanks :)

On Wed, Mar 16, 2016, 7:05 PM Bruno notifications@github.com wrote:

I've had a similar issue with airline a couple weeks ago, the solution was
to update airline and add the new airline-theme repository.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#33 (comment)

@flyingfisch
Copy link
Author

Installed those, still having issues. Here is my init.vim: https://github.com/flyingfisch/dotfiles/blob/master/nvim/init.vim

@rhysd
Copy link
Owner

rhysd commented Mar 17, 2016

Sorry for late response. I tried this.

Just after installing vim-airline, it worked.

2016-03-17 10 51 54

Then I installed vim-airline-theme. I'm using lucius color scheme. So I think lucius theme was detected by vim-airline-theme.
After restarting NyaoVim, this issue was reproduced.

2016-03-17 10 56 07

But when I specified :AirlineTheme base16_asches, it worked. So I think there is some color-specific problem.

2016-03-17 10 57 24

We need to investigate further.

@rhysd
Copy link
Owner

rhysd commented Mar 17, 2016

Some themes work but some other themes don't work.

@flyingfisch
Copy link
Author

I'm using gruvbox, in case that helps.

On Wed, Mar 16, 2016, 10:07 PM Linda_pp notifications@github.com wrote:

Some themes work but some other themes don't work.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#33 (comment)

@rhysd
Copy link
Owner

rhysd commented Mar 17, 2016

vim-airline theme for gruvbox does not exist yet. What vim-airline theme are you using? (:AirlineTheme tells you that.)

@flyingfisch
Copy link
Author

It says gruvbox...

@flyingfisch
Copy link
Author

Ah, ok. Gruvbox has a bundled airline theme: https://github.com/morhetz/gruvbox#airline-theme

@rhysd
Copy link
Owner

rhysd commented Mar 17, 2016

Oh, I see.

@rhysd
Copy link
Owner

rhysd commented Mar 17, 2016

Note: it seems to fail to specify background color at status line at some colors

@flyingfisch
Copy link
Author

OK, just got it working. You have to make sure true color mode is enabled in your init.vim. Maybe true color mode should be enabled by default in nyaovim?

@flyingfisch
Copy link
Author

Also, on a side note, how do I install the newest version of nyaovim? I have tried npm install nyaovim but I still have the hollow cursor instead of the new inverted one.

@flyingfisch
Copy link
Author

Just realized I forgot the -g flag. I've got the latest version now.

@rhysd
Copy link
Owner

rhysd commented Apr 23, 2016

I looked into more.

2016-04-23 15 14 24

Here, the NORMAL is a text in status line with 'lucius' theme with vim-airline.
Neovim sends 'change fg/bg color' event and then sends 'render text' event. As described in above log, the 'change fg/bg color' event indicates #d7d7d7 as foreground color and #303030 as background color. Neovim looks sending wrong fg/bg colors for status line.

@jordwalke
Copy link

jordwalke commented Sep 29, 2016

This could be related to this: vim-airline/vim-airline#1244

I believe that's an issue with airline and any of the latest vim builds (neovim, vim)

@rhysd
Copy link
Owner

rhysd commented Sep 29, 2016

Thank you for the information.

There is one more color-related issue in NyaoVim: #71

It seems that Neovim lacks some color names: Issue. When the color is specified by the lacked color names, it may not reflect to UI.

@flyingfisch
Copy link
Author

Wow, I didn't realize I forgot to reply to this issue. I fixed it, for me at least, by adding the following to my init.vim:

let $NVIM_TUI_ENABLE_TRUE_COLOR=1

Really sorry for not updating the thread, I got busy with other things and completely forgot. @rhysd should I close this?

@coddingtonbear
Copy link

coddingtonbear commented Dec 5, 2016

I, too, encountered this problem and solved it by adding --

set termguicolors

to my ~/.config/nvim/init.vim.

Also note that if you're seeing > rather than , you're probably missing this setting there, too:

let g:airline_powerline_fonts = 1

g:airline_powerline_fonts is what tells Airline to swap the > symbols with (among other symbols); if you're using a Powerline-compatible font, the symbols are prettier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants