Tips:下载好nvim 后建议新手输入“:Tutor”先熟悉操作


build系统变量

XDG_CONFIG_HOME
XDG_DATA_HOME
XDG_STATE_HOME data文件总再次生成于c盘,checkhealth后发现改这个可以解决::


Lazy.nvim下载

结构

1
2
3
4
5
6
7
8
9
~/.config/nvim
├── lua
│ ├── config
│ │ └── lazy.lua
│ └── plugins
│ ├── spec1.lua
│ ├── **
│ └── spec2.lua
└── init.lua

init.lua

1
require("config.lazy")

lazy.lua

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
34
35
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)

-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"

-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = true },
})

Nerd Font(JetBrainsMono为例)

安装

下载后解压 CTRL+A 全部安装

配置[Windows Terminal(终端容器)为例]

∨→设置→外观→JetBrainsMono Nerd Font
Windows Terminal 是一个现代终端容器,PowerShell 是它里面运行的一个命令行环境。你可以在 Windows Terminal 中运行 Neovim,并通过它设置字体、主题和图标支持。


插件推荐(更新ing)

总表

neotree.lua
lualine.lua
which-key.lua
treesitter.lua
tokyonight.lua
bufferline.lua
smear_cursor.lua

强调(treesitter)

安装clang
环境变量PATH ../bin


Tip

Hexo项目的source/目录下创建一个名为CNAME的文件名(无扩展名)内容为域名如:blog.get.top