English | 中文版
- Completely written in Lua for enhanced performance and customization.
- Easy setup with minimal configuration required.
- Automatic formatting on save for a clean codebase.
- Intelligent autocompletion for increased productivity.
- Utilizes Neovim's built-in LSP for robust language support.
- Comprehensive language support including C/C++, Shell, Python, Lua, Java, Rust, and Markdown.
- Debugging support for C/C++, Python, and other languages.
- Integrated REST client for web development and testing.
- Default theme: OneDark, for a modern and sleek interface.
- neovim > 0.10
- patched font (see nerd fonts)
- translate-shell
- lazygit
- clangd
- bash-language-server
- pylsp
- go
- gopls
- npm
- ripgrep
- fd
- fzf
- lua-language-server
- vscode-cpp-tools
- cmake-language-server
- jdtls
- rust-analyzer
- xsel
- zathura
- noto-fonts-emoji
- noto-color-emoji-fontconfig-no-binding
- luarocks
- btop
sudo pacman -S neovim
sudo ln -sf /usr/bin/nvim /usr/local/bin/vi
sudo ln -sf /usr/bin/nvim /usr/local/bin/vim
sudo pacman -S make
sudo pacman -S translate-shell
sudo pacman -S lazygit
sudo pacman -S bash-language-server
sudo pacman -S pyright
sudo pacman -S lua-language-server
sudo pacman -S go
sudo pacman -S gopls
sudo pacman -S npm
sudo pacman -S ripgrep
sudo pacman -S fd
sudo pacman -S fzf
sudo pacman -S unzip
sudo pacman -S xsel
sudo pacman -S zathura
sudo pacman -S noto-fonts-emoji --noconfirm
sudo pacman -S rust-analyzer
sudo pacman -S luarocks
sudo pacman -S btop
yay -S jdtls
yay -S noto-color-emoji-fontconfig-no-binding
pip install cmake-language-server
## Install vscode-cpp-tools for debugging c/cpp
wget https://github.com/microsoft/vscode-cpptools/releases/download/v1.10.8/cpptools-linux.vsix
mkdir vscode-cpptools
pushd vscode-cpptools
unzip ../cpptools-linux.vsix
popd
mv vscode-cpptools ~/.local/
chmod +x ~/.local/vscode-cpptools/extension/debugAdapters/bin/OpenDebugAD7
git clone https://github.com/quintin-lee/NVCode.git ~/.config/nvim
nvim
### If LspInstall gopls fails to fetch, set up a proxy
# Error msg:spawn: go failed with no exit code. go is not executable
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
Nerd Fonts: https://github.com/ryanoasis/nerd-fonts.git
Recommend JetBrainsMono font
cd ~/.config/nvim
bash install_fonts.sh
To configure the OpenAI API interface directly, set the following environment variables.
AVANTE_API_ENDPOINT
AVANTE_MODEL_NAME
AVANTE_API_KEY
- As an example, configuring with ZhiPu Qingyan:
Official Documentation of ZhiPu Qingyan
- Obtain API Keys
You can visit the API Keys page to find the API Key you will use in the request.
- Verify whether the API Keys can access GLM4
curl --location 'https://open.bigmodel.cn/api/paas/v4/chat/completions' \
--header 'Authorization: Bearer <你的apikey>' \
--header 'Content-Type: application/json' \
--data '{
"model": "glm-4",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'
- Configure environment variables
export AVANTE_API_ENDPOINT=https://open.bigmodel.cn/api/paas/v4
export AVANTE_MODEL_NAME=GLM-4
export AVANTE_API_KEY=f1xxxxxxxxxxxxx05aa5b9b9.wLgWjdxxxxxxRwr (use your own API_KEY)
quintinlee/neovim is the Docker image of NVCode based on Archlinux. You can quickly experience the joy brought by NVCode without installing NVCode.
docker run -it --rm --privileged -e TERM=screen-256color -v ~/workspace:/workspace -w /workspace crpi-cofuzswrnwwx9atk.cn-beijing.personal.cr.aliyuncs.com/quintinlee/nvcode:0.10 /opt/nvcode/bin/nvcode