☑️

neovim 无法打开

Created
Feb 7, 2022 02:00 AM
Tags
manjaro
neovim
OS
manjaro
Status
Solved
 

Description 问题描述:

neovim 打开即报错

Error Code 报错代码 :

nvim src/lib.rs
nvim: symbol lookup error: nvim: undefined symbol: ts_query_cursor_set_match_limit
 
 

Reason 原因分析:

目前没有找到确切的原因, 官方 repo上有类似的issue, 2018年至今目前还是open状态...
一开始预计是paru或者yay在build时的问题, 后来又发现yay有问题...
最后直接从源码编译安装解决
 
 

Solutions 解决方案:

 
 
##Install build prerequisites on your system
git clone https://github.com/neovim/neovim
cd neovim && make -j4
##If you want the stable release, also run git checkout stable.
##If you want to install to a custom location, set CMAKE_INSTALL_PREFIX. See also Installing Neovim.
##On BSD, use gmake instead of make.
##To build on Windows, see the Building on Windows section.
sudo make install
##Default install location is /usr/local