Files
nvim/README.md

59 lines
1.1 KiB
Markdown
Raw Normal View History

2025-11-20 11:52:01 +08:00
# 💤 LazyVim
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
2026-02-09 16:02:15 +08:00
# 本nvim配置使用方法
- 克隆配置。
- 环境依赖nodejs,python,c编译器,网络代理,tar和tree-sitter-cli。
- 上述环境下,执行nvim安装即可。
2025-11-20 11:52:01 +08:00
# 环境需求
环境需求在`LazyVim`官网都会有提到,这里简单记录一些细节。
一般都会用到几个**主要部分**:
- go
- python
- nodejs
**插件安装:**
| 插件名称 | 依赖语言 | 指令 |
| ------------ | -------- | -------------------- |
| prettier | nodejs | npm install prettier |
| xmlformatter | python | mason中安装 |
**一些参考配置:**
```json
// .prettierrc
{
"tabWidth": 4,
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 4
}
},
{
"files": "*.jsonc",
"options": {
"tabWidth": 4
}
},
{
"files": "*.cfg",
"options": {
"parser": "json",
"tabWidth": 4
}
}
]
}
```