I recently was looking into nvim, and was Downloading the vim-airline-gruvbox-git from the AUR, which resulted in this error, even after multiple tries of uninstalling the package/plugins and reinstalling everything:

Error detected while processing function <SNR>29_on_window_changed[22]..<SNR>29_init[29]..<SNR>29_on_colorscheme_changed:
line    4:
E117: Unknown function: airline#init#gui_mode

And I sadly have no Idea what I can take from this and how I should go about fixing it.

I know I should of looked if there was a github for this and added it to my configs, but here I am.

Edit: I resolved it by deleting some Folders named nvim, looked if it worked, maybe reinstalling here and there. Sorry for not remembering what Folders I deleted, but if you make this exact mistake, a probably cleaner solution is in the Comments (thanks TornaxO7).

1

There are 1 answers

1
TornaxO7 On

A quick look into its PKGBUILD:

# ...
url="https://github.com/morhetz/gruvbox"
# ...
source=("$pkgname::git+https://github.com/morhetz/gruvbox.git")
# ...

it looks like that it's actually just installing the gruvbox (this is the link from url in the PKGBUILD!) theme for airline:

install -Dm755 ${srcdir}/${pkgname}/autoload/airline/themes/gruvbox.vim ${pkgdir}/usr/share/vim/vimfiles/autoload/airline/themes/gruvbox.vim

but it does not install vim-airline itself. So all you need to do is installing vim-airline as well.