Neovim:处理功能时检测到的错误< snr> 29_on_window_changed [22] ..< snr> 29_ini t [29]

发布于 2025-01-27 05:28:50 字数 514 浏览 2 评论 0原文

我最近正在研究NVIM,并且正在从AUR下载Vim-Airline-Gruvbox-Git,这导致了此错误,即使在多次尝试卸载包装/插件并重新安装所有内容之后,

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

我也不知道我不知道什么可以从中获得,以及我应该如何修复它。

我知道如果有一个github并将其添加到我的配置中,我应该看一下。

编辑:我通过删除一些名为NVIM的文件夹来解决它,查看它是否有效,可能在这里和那里重新安装。抱歉,我不记得我删除了哪些文件夹,但是如果您犯了这个确切的错误,则在评论中可能是一个更干净的解决方案(感谢Tornaxo7)。

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).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阳光下的泡沫是彩色的 2025-02-03 05:28:50

快速查看其 pkgbuild

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

看起来它实际上只是安装 gruvbox(这是pkgbuild中的url的链接!)航空公司的主题:

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

但是它不安装 vim-airline 本身。因此,您需要做的就是安装 vim-airline也是如此。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文