# neonvim 安装与配置

### 基于 cmd 安装, (有可能版本会比较旧)
```
sudo apt-get install neovim
```

### 基于源码安装



```
## install gcc build env
sudo apt-get install build-essential
sudo apt-get install cmake

### could not find luajit
sudo apt-get install luajit

## Could NOT find Gettext
sudo apt-get install gettext libgettextpo-dev

# get source
git clone https://github.com/neovim/neovim.git

cd neovim

#switch stable branch
gco stable

make CMAKE_BUILD_TYPE=RelWithDebInfo

sudo make install
```

[![](http://www.netflt.com/uploads/images/gallery/2025-01/scaled-1680-/F9BxQ9kk9e1OOAeh-image-1735727423884.png)](http://www.netflt.com/uploads/images/gallery/2025-01/F9BxQ9kk9e1OOAeh-image-1735727423884.png)

### 下载 nvim 配置
```
mkdir -p ~/.config/
git clone https://github.com/netflt/nvim-cpp.git nvim
nvim ./
```
[![](http://www.netflt.com/uploads/images/gallery/2025-01/scaled-1680-/MoqNEglRVbxKjFm3-image-1735727673990.png)](http://www.netflt.com/uploads/images/gallery/2025-01/MoqNEglRVbxKjFm3-image-1735727673990.png)

> 可能出现以下错误原因是 blink_cmp_fuzzy 依赖文件找不到
> 1. curl 没有安装导致 blink_cmp_fuzzy 下载失败; 可以安装 curl 重新启动 nvim 解决
> 2. libblink_cmp_fuzzy 找不到对应的版本,可以手动编译
>
[![](http://www.netflt.com/uploads/images/gallery/2025-01/scaled-1680-/8sD69dXoqthAdq9m-image-1735727637439.png)](http://www.netflt.com/uploads/images/gallery/2025-01/8sD69dXoqthAdq9m-image-1735727637439.png)