NyaoVim icon indicating copy to clipboard operation
NyaoVim copied to clipboard

Issues with vim-airline

Open flyingfisch opened this issue 8 years ago • 19 comments

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

flyingfisch avatar Feb 27 '16 20:02 flyingfisch

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.

bpinto avatar Mar 16 '16 23:03 bpinto

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

On Wed, Mar 16, 2016, 7:05 PM Bruno [email protected] 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 https://github.com/rhysd/NyaoVim/issues/33#issuecomment-197595951

flyingfisch avatar Mar 16 '16 23:03 flyingfisch

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

flyingfisch avatar Mar 17 '16 01:03 flyingfisch

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 avatar Mar 17 '16 01:03 rhysd

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

rhysd avatar Mar 17 '16 02:03 rhysd

I'm using gruvbox, in case that helps.

On Wed, Mar 16, 2016, 10:07 PM Linda_pp [email protected] 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 https://github.com/rhysd/NyaoVim/issues/33#issuecomment-197652904

flyingfisch avatar Mar 17 '16 02:03 flyingfisch

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

rhysd avatar Mar 17 '16 02:03 rhysd

It says gruvbox...

flyingfisch avatar Mar 17 '16 02:03 flyingfisch

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

flyingfisch avatar Mar 17 '16 03:03 flyingfisch

Oh, I see.

rhysd avatar Mar 17 '16 03:03 rhysd

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

rhysd avatar Mar 17 '16 16:03 rhysd

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 avatar Mar 25 '16 01:03 flyingfisch

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 avatar Mar 25 '16 01:03 flyingfisch

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

flyingfisch avatar Mar 25 '16 01:03 flyingfisch

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.

rhysd avatar Apr 23 '16 06:04 rhysd

This could be related to this: https://github.com/vim-airline/vim-airline/issues/1244

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

jordwalke avatar Sep 29 '16 06:09 jordwalke

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.

rhysd avatar Sep 29 '16 08:09 rhysd

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?

flyingfisch avatar Oct 02 '16 20:10 flyingfisch

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.

coddingtonbear avatar Dec 05 '16 19:12 coddingtonbear