Nvimdots安装教程
基于 Vim 的超可扩展文本编辑器,更多 Neovim 信息可前往 Neovim官网 (opens new window) 了解。
作者使用的是 Github 站点上一个打造好的轮子,项目名称: nvimdots (opens new window)。
以下安装过程是在
Ubuntu 20.04.2 LTS
系统中安装的过程。
# 安装最新版本的Neovim
添加Neovim的稳定版本PPA
sudo add-apt-repository ppa:neovim-ppa/stable
1
更新你的软件包列表,以确保Ubuntu知道可以安装的最新软件版本。
sudo apt update
1
执行安装。
sudo apt install neovim
1
通过在终端中输入 nvim
来启动Neovim。
nvim
1
这样就在 Ubuntu 上安装了最新的稳定版 Neovim。如果想安装开发版(可能包含最新的特性,但可能不够稳定),可以在第二步中使用 ppa:neovim-ppa/unstable
代替 ppa:neovim-ppa/stable
。
# 克隆项目
首先,拉取项目代码。
git clone https://github.com/ayamir/nvimdots.git
1
执行安装。
cd nvimdots/scripts
./install.sh
1
2
2
按照安装提示进行输入,等待安装即可。
❯ ./install.sh
==> This script will install ayamir/nvimdots to:
/home/leiyong/.config/nvim
Press RETURN/ENTER to continue or any other key to abort...
==> Validating SSH connection...
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Do you prefer to use SSH to fetch and update plugins? (otherwise HTTPS) [Y/n]: Y
==> Checking 'git clone' preferences...
Would you like to perform a shallow clone ('--depth=1')? [Y/n]: Y
==> Fetching in progress...
Cloning into '/home/leiyong/.config/nvim'...
remote: Enumerating objects: 165, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (155/155), done.
remote: Total 165 (delta 4), reused 35 (delta 2), pack-reused 0
Receiving objects: 100% (165/165), 102.27 KiB | 354.00 KiB/s, done.
Resolving deltas: 100% (4/4), done.
==> Spawning Neovim and fetching plugins... (You'll be redirected shortly)
==> NOTE: Please make sure you have a Rust Toolchain installed via `rustup`! Otherwise, unexpected things may
happen. See: https://www.rust-lang.org/tools/install.
==> If lazy.nvim failed to fetch any plugin(s), maunally execute `:Lazy sync` until everything is up-to-date.
Thank you for using this set of configuration!
- Project Homepage:
https://github.com/ayamir/nvimdots
- Further documentation (including executables you must install for full functionality):
https://github.com/ayamir/nvimdots/wiki/Prerequisites
Press RETURN/ENTER to continue or any other key to abort...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 修改配置
以下是作者的一部分个性化配置修改,创建用户配置文件。
cd ~/.config/nvim/
mkdir -p lua/user
cd lua/user
touch settings.lua
1
2
3
4
2
3
4
添加个人配置。
-- Please check `lua/core/settings.lua` to view the full list of configurable settings
local settings = {}
-- Set it to false if you don't use copilot
---@type boolean
settings["use_copilot"] = false
-- Set it to false if there are no need to format on save.
---@type boolean
settings["format_on_save"] = false
return settings
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 更多说明
关于 nvimdots
的相关更多信息可前往 现代化Neovim配置 (opens new window)。
关于 nvimdots
的相关快捷键可前往 Github (opens new window)。
上次更新: 2023/09/08, 16:30:21