vim-airline / vim-airline

lean & mean status/tabline for vim that's light as air
MIT License
17.78k stars 1.1k forks source link

Cannot get branch in status line #2412

Closed statquant closed 3 years ago

statquant commented 3 years ago

Hello, I recently reinstall my entire distro (fedora 34) and while re-setuping vim I realized I cannot have vim-airline working properly. The branch is not being displayed. I tried many things (see mini reproducible below), I also tried to defined AirlineInit without success.

Could you kindly help ?

environment

- vim-airline: commit `b861f9d2483a8b066f7b5b4dbae8990ff21455c5`
- OS: fedora 34
- Have you reproduced with a minimal vimrc: yes
- What is your airline configuration: 

" Specify a directory for plugins " At the time of writing vim-plug must be install doing " bash) curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug. vim call plug#begin('~/.vim/plugged') " Patched fonts for Powerline: https://github.com/powerline/fonts Plug 'powerline/fonts', {'do': './install.sh'} " Lean & mean status/tabline for vim: https://github.com/vim-airline/vim-airline Plug 'vim-airline/vim-airline' call plug#end()

" Load the powerline symbols let g:airline_powerline_fonts = 1 " Use the tabline (integrated in vim-airline) to show buffers on top let g:airline#extensions#tabline#enabled = 1 " Use the branch info let g:airline#extensions#branch#enabled = 1


if you are using terminal:
- terminal: tilix
- $TERM variable: xterm-256color
- color configuration (:set t_Co?): 256
if you are using Neovim: no
- does it happen in Vim: yes

#### actual behavior
I cannot see the branch in the status-line in vim while I can in shell

in shell:
![image](https://user-images.githubusercontent.com/3612473/127098517-61a48552-938a-4643-815c-9706c4bc286f.png)

in vim:
![image](https://user-images.githubusercontent.com/3612473/127098612-1c65e558-0d88-4425-9564-3039ce299b11.png)

#### expected behavior

I would expect master somewhere in the status line
chrisbra commented 3 years ago

You need the fugitive plugin for the branch extension

statquant commented 3 years ago

Damn it... image

Thanks