rhysd / NyaoVim

Web-enhanced Extensible Neovim Frontend
Other
2.22k stars 57 forks source link

Issues with vim-airline #33

Open flyingfisch opened 8 years ago

flyingfisch commented 8 years ago

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

bpinto commented 8 years ago

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 commented 8 years ago

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 https://github.com/rhysd/NyaoVim/issues/33#issuecomment-197595951

flyingfisch commented 8 years ago

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

rhysd commented 8 years ago

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 commented 8 years ago

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

flyingfisch commented 8 years ago

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 https://github.com/rhysd/NyaoVim/issues/33#issuecomment-197652904

rhysd commented 8 years ago

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

flyingfisch commented 8 years ago

It says gruvbox...

flyingfisch commented 8 years ago

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

rhysd commented 8 years ago

Oh, I see.

rhysd commented 8 years ago

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

flyingfisch commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

rhysd commented 8 years ago

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 commented 8 years ago

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)

rhysd commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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.