https://github.com/liurongqing/nvim
一份基于 macbook 的 nvim 完整的快速配置
https://github.com/liurongqing/nvim
nvim tmux vim
Last synced: 4 months ago
JSON representation
一份基于 macbook 的 nvim 完整的快速配置
- Host: GitHub
- URL: https://github.com/liurongqing/nvim
- Owner: liurongqing
- License: mit
- Created: 2023-04-29T03:04:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T12:58:20.000Z (about 2 years ago)
- Last Synced: 2024-05-22T14:05:08.289Z (about 2 years ago)
- Topics: nvim, tmux, vim
- Language: Lua
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 成神之路




[](https://github.com/mhinz/vim-startify)
[](https://github.com/nvim-tree/nvim-tree.lua)
[](https://github.com/catppuccin/nvim)
[](https://github.com/nvim-telescope/telescope.nvim)
---
这是一份基于 macbook 的 nvim 完整的配置
1. 环境变量
`vim ~/.zshrc`
```shell
# alias vim="nvim" # 留条路,万一 nvim 崩了,还能用 vim 临时编辑
alias vi="nvim"
alias v="nvim"
alias n="nvim"
```
1. 安装 tmux
参考地址:https://github.com/tmux/tmux
```shell
brew install tmux
```
配置:https://github.com/gpakosz/.tmux
快速入手: [doc/tmux.md](./doc/tmux.md)
1. 安装 neovim
参考地址:https://github.com/neovim/neovim/wiki/Installing-Neovim
```shell
brew install neovim
```
1. 安装 字体
参考地址:https://github.com/ryanoasis/nerd-fonts/#option-4-homebrew-fonts
```shell
# brew tap homebrew/cask-fonts 已经移入核心,不需要加这句了
brew install font-hack-nerd-font
# 安装好以后在 iterm2 中设置 `Profiles` -> `Text` -> `Non-ASCII Font`
```
1. packer.nvim 安装
参考地址:https://github.com/wbthomason/packer.nvim
```shell
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
```
1. 克隆整个配置文件
```shell
cd ~/.config
git clone https://github.com/liurongqing/nvim.git
```
1. packer.nvim 管理的插件安装
```shell
# 输入 nvim 命令,然后输入以下命令安装同步
:PackerSync
```
1. Coc.nvim 相关插件安装
需要先安装 node, 可以安装 nvm 管理 node 版本
```shell
# 输入 nvim 命令,然后安装以下插件
:CocInstall coc-json coc-tsserver coc-eslint coc-prettier coc-emmet coc-snippets
```
1. 安装插件以支持 telescope 搜索
1. ripgrep
https://github.com/BurntSushi/ripgrep?tab=readme-ov-file#installation
```shell
brew install ripgrep
```
1. sharkdp/fd
https://github.com/sharkdp/fd?tab=readme-ov-file#installation
```shell
brew install fd
```
1. nvim-treesitter
https://github.com/nvim-treesitter/nvim-treesitter/wiki/Installation
在 `lua/plugins.ua` 中添加
```shell
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate'
}
```