Mindket

LazyVim

新上架第 2 版 · 更新于
星标27.8k

概览

LazyVim 项目免费、开源的 Neovim 配置,由 lazy.nvim 驱动,带有合理的默认设置和可以直接用的插件。安装说明涵盖 Linux、macOS、Windows、Docker、配置、快捷键和扩展(extras)。

LazyVim 是一款 GitHub 上的开源项目,属于开发类,由 Mindket 上架。可免费获取。当前为第 2 版,最近更新于 。按它的 README 从 GitHub 安装。Mindket 的设置说明可在你的 Mindket 账户获取,以 zip 压缩包下载。

速览

用在
  • Linux 和 macOS:把 starter 克隆到 ~/.config/nvim
  • Windows:用 PowerShell 把同一个 starter 克隆到 LOCALAPPDATA 下的 nvim 文件夹
  • Docker:Installation 页面上的 docker run 命令(Fedora),或 README 里的那条(Alpine)
  • 终端:kitty、wezterm、alacritty、iTerm2 和 ghostty,文档列出它们支持真彩色和波浪下划线(undercurl)
先运行
mv ~/.config/nvim{,.bak}
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}

平台

Linux操作系统
macOS操作系统
Windows操作系统
Docker容器

关于

它是什么

LazyVim 是一套由 lazy.nvim 驱动的 Neovim 配置。它是一组 Lua 文件,本身不是一个独立的程序。README 说,你不必在从零开始和使用现成的发行版之间二选一,LazyVim 兼顾两者的长处。你可以按需调整自己的配置,同时享有预先配置好的便利。它的目标是把 Neovim 变成一个功能完整的 IDE,并为选项(options)、自动命令(autocmds)和快捷键(keymaps)提供合理的默认设置。

  1. 你把 starter 克隆进 Neovim 的配置文件夹
  2. 第一次启动时克隆 lazy.nvim
  3. lazy.nvim 安装 LazyVim 和它导入的插件
  4. LazyVim 的默认设置先于你自己的文件加载
  5. 你在 lua/config 和 lua/plugins 里的文件修改这些默认设置

适合谁

已经在用 Neovim 或者想用 Neovim 的人,希望第一次启动就有一个能用的编辑器,而不是一份空白配置。你要编辑 Lua 文件,所以对终端稍微熟悉一点会有帮助。如果你有一份自己写的配置而且用得顺手,就不必换。它还需要 Neovim 0.11.2 或更新版本,旧版本要先升级。

谁在用,怎么用
行业谁在用怎么用例子
软件开发想在终端里用上 IDE 的开发者克隆 starter,再用 :LazyExtras 打开语言和工具扩展一位开发者在第一次启动后运行 :LazyExtras,从文档列出的分组里挑选,比如 lang、test 和 dap。
AI 辅助编程在编辑器里和 AI 助手一起工作的开发者打开 Keymaps 页面列出的某个 AI 扩展一位开发者打开 claudecode 扩展,按 <leader>ac 切换 Claude,和 Keymaps 页面列的一样。
dotfiles 和共享配置把配置放在 Git 里的人删掉 starter 的 .git 文件夹,把配置文件夹提交到自己的仓库一位开发者按 Installation 页面说的删掉 ~/.config/nvim/.git,再把这个文件夹推送到自己的仓库。
学习 Neovim想有人带着入门的新手跟着文档、文档链接的入门视频和那本免费的书学一位学习者看完入门视频,再编辑 lua/config/options.lua,改一项设置。
容器和快速试用想先试一试的人运行文档里的 docker run 命令,在容器里用 LazyVim一位开发者运行 Installation 页面上的 Fedora 命令,进入容器里的 nvim。

用在哪里

LazyVim 在终端里的 Neovim 中运行。文档为每个系统给出了一条克隆命令,安装说明里每个系统也各有一页。

  • Linux 和 macOS:把 starter 克隆到 ~/.config/nvim
  • Windows:用 PowerShell 把同一个 starter 克隆到 LOCALAPPDATA 下的 nvim 文件夹
  • Docker:Installation 页面上的 docker run 命令(Fedora),或 README 里的那条(Alpine)
  • 终端:kitty、wezterm、alacritty、iTerm2 和 ghostty,文档列出它们支持真彩色和波浪下划线(undercurl)

如何设置

点“获取”会把一个装有 Mindket 安装说明的 zip 压缩包存进你的下载文件夹,上面每种方式各有一页。安装本身就是克隆 starter,其余的由 lazy.nvim 在第一次启动时完成。

先准备好这些
需要说明
Neovim0.11.2 或更新版本,用 LuaJIT 构建
Git2.19.0 或更新版本,用于部分克隆(partial clone)
C 编译器和 tree-sitter-clinvim-treesitter 两个都需要
curl补全引擎 blink.cmp 需要它
终端支持真彩色和 undercurl 的终端
可选Nerd Font(v3.0 或更高)、lazygit,以及 fzf-lua 选择器要用的 fzf(v0.25.1 或更高)、ripgrep 和 fd
账号或密钥Mindket 读过的页面都没有要求
  1. 备份你现有的 Neovim 文件。
  2. 把 starter 克隆进 Neovim 的配置文件夹。
  3. 删掉 starter 的 .git 文件夹,方便以后加进你自己的仓库。
  4. 启动 nvim,让插件自动安装。
  5. 运行 :LazyHealth,检查一切是否正常。

在 Linux 和 macOS 上,Installation 页面给出这几行。第一行是必需的,另外三行可选,但推荐执行:

# required
mv ~/.config/nvim{,.bak}

# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}

然后克隆、去掉 starter 的历史记录,再启动 Neovim:

git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
nvim

在 Windows 上,这个页面用 PowerShell,文件夹也不同。第一行是必需的,第二行可选,但推荐执行:

# required
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak

# optional but recommended
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak

然后克隆 starter,删掉它的 .git 文件夹,再启动 Neovim:

git clone https://github.com/LazyVim/starter $env:LOCALAPPDATA\nvim
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force
nvim

这些移动命令把你现有的配置挪到一边,Neovim 就不会再加载它。先看看那些文件夹里有什么。

如何使用

按空格键。LazyVim 用的是 which-key.nvim,所以会弹出一个窗口,列出以空格开头的每个快捷键。默认的 leader 键是空格,默认的 local leader 是反斜杠。下面这些键来自 Keymaps 页面:

  • <leader><space> 在根目录里查找文件,<leader>/ 在那里搜索文本(grep)
  • <leader>e 打开文件浏览器,<leader>, 列出缓冲区
  • <leader>cf 格式化文件,<leader>ca 打开代码操作
  • <leader>l 打开 Lazy,<leader>L 打开 LazyVim 的更新日志
  • <leader>? 显示当前缓冲区的快捷键

扩展(extras)是可选的插件组合。Extras 页面说,安装它们最简单的方法是 :LazyExtras 命令。

:LazyExtras

示例

你想用 catppuccin 配色方案代替默认的。Configuration 页面把它设成 LazyVim 插件的一个选项。把下面这段存为 lua/plugins/core.lua:

return {
  {
    "LazyVim/LazyVim",
    opts = {
      colorscheme = "catppuccin",
    }
  }
}

默认的 colorscheme 选项加载 tokyonight。Plugins 页面把 TokyoNight 和 Catppuccin 列为它的默认配色方案。

新手与专家

新手:LazyVim 是一份现成的 Neovim 配置,由一个 init.lua 和 lua/config、lua/plugins 下的 Lua 文件组成,由你来编辑。starter 的文件里有注释,告诉你该改哪里。LazyVim 先加载自己的默认设置,再加载你的。General Settings 页面提醒你,不要手动 require lua/config 下的 autocmds、keymaps、lazy 或 options,因为 LazyVim 会加载它们。按 Installation 页面的建议,第一次启动后运行 :LazyHealth。

专家:你写的插件 spec 会按规则和 LazyVim 的合并。cmd、event、ft、keys 和 dependencies 列表会被扩展,opts 会被合并,其他属性则直接覆盖。对 ft、event、keys、cmd 和 opts,你可以传入一个函数,修改默认值或返回新的值。要关掉一个默认快捷键,就给出相同的 lhs 和 mode,值设为 false。

lazy.nvim 和 LazyVim 默认跟随最新的稳定版。要跟踪开发版,就给两者各加一个 version 设为 false 的 spec。starter 对其他插件保持 version 为 false,文档说许多插件的发布版本已经过时,可能弄坏你的安装。vim.g.lazyvim_picker(telescope 或 fzf)和 vim.g.lazyvim_cmp(nvim-cmp 或 blink.cmp)这类选项默认是 "auto"。

注意事项

lazy.nvim、mason.nvim 和 nvim-treesitter 都会从网络下载,安装步骤还会移动你现有的 Neovim 文件夹。

  • 网络:第一次启动时从 https://github.com/folke/lazy.nvim.git 克隆 lazy.nvim,再由 lazy.nvim 安装 LazyVim 和它导入的插件。mason.nvim 安装语言服务器和工具,starter 的 example.lua 说 pyright “will be automatically installed with mason”(会由 mason 自动安装)。nvim-treesitter 安装解析器。starter 打开了 lazy.nvim 的更新检查,但关掉了通知
  • 你原来的配置:移动命令会给它改名,而且你别的 Neovim 配置也在这些文件夹里
  • 留意变化:LazyVim 的 NEWS.md 有改动时会显示出来,内容是重大新功能和不兼容的改动
  • 版本:文档说暂时让插件保持 version 为 false,因为过时的发布版本可能弄坏你的安装
  • AI 扩展:avante、claudecode、CopilotChat 和 sidekick 在 Keymaps 页面上以扩展的形式出现。Mindket 读过的页面没有说它们需要什么账号或密钥,所以先读每个插件自己的页面
  • 卸载:文档没有给出卸载步骤。要看的就是备份命令里提到的那些文件夹
  • 使用数据和账号:Mindket 读过的页面对这两点都没有提
  • 许可证:Apache-2.0。LICENSE 文件是标准文本,没有写明版权持有人,文档网站的页脚写着“Copyright © 2026 LazyVim, Inc.”

README 和文件

README

LazyVim:安装说明

这个工具包里只有安装说明,由 Mindket 编写。LazyVim 从制作方自己的仓库安装:https://github.com/LazyVim/LazyVim 是 LazyVim 本身,https://github.com/LazyVim/starter 是你要克隆的 starter 模板。

这些说明不是 LazyVim 项目写的,也没有得到它的认可。README 称 LazyVim 为“a Neovim setup powered by lazy.nvim to make it easy to customize and extend your config.”,意思是:一套由 lazy.nvim 驱动的 Neovim 配置,让你轻松定制和扩展自己的配置。文档在 https://lazyvim.github.io

许可证:Apache-2.0。LICENSE 文件(https://github.com/LazyVim/LazyVim/blob/main/LICENSE )是标准的 Apache License 2.0 文本。它末尾的附录保留了占位行“Copyright [yyyy] [name of copyright owner]”,没有写明版权持有人。starter 的 LICENSE(https://github.com/LazyVim/starter/blob/main/LICENSE )是同样的文本。文档网站的页脚写着“Copyright © 2026 LazyVim, Inc.”(https://lazyvim.github.io/extras )。

Mindket 在 2026 年 11 月 3 日读了这些页面。LazyVim 经常变动,所以运行命令之前先看一下 Installation 页面。

会安装什么

LazyVim 不是一个可以单独安装的程序。它是一组由 Neovim 加载的 Lua 文件。Installation 页面让你把 LazyVim 的 starter 克隆进 Neovim 的配置文件夹。第一次启动时,starter 的 lua/config/lazy.lua 会克隆插件管理器 lazy.nvim,lazy.nvim 再安装 LazyVim 和它导入的插件。来源见 https://lazyvim.github.io/configuration/lazy.nvim

starter 的 GitHub 页面列出了 .gitignore、.neoconf.json、LICENSE、README.md、init.lua、stylua.toml 和一个 lua 文件夹。Configuration 页面把配置文件夹画成一个 init.lua、lua/config(autocmds.lua、keymaps.lua、lazy.lua 和 options.lua)和 lua/plugins,你自己的 spec 文件就放在 lua/plugins 里。你编辑这些文件,LazyVim 自己的默认设置会先于它们加载。来源见 https://github.com/LazyVim/starter 和 https://lazyvim.github.io/configuration

事先需要准备

Getting Started 页面列出了这些。来源见 https://lazyvim.github.io

  • Neovim 0.11.2 或更新版本,用 LuaJIT 构建。
  • Git 2.19.0 或更新版本,用于部分克隆。
  • tree-sitter-cli 和一个 C 编译器,供 nvim-treesitter 使用。页面指向这个插件自己的要求。
  • curl,供补全引擎 blink.cmp 使用。
  • 可选:一款 Nerd Font(v3.0 或更高),页面说显示某些图标需要它,以及 lazygit。
  • 可选,供 fzf-lua 选择器使用:fzf(v0.25.1 或更高)、用于实时搜索(live grep)的 ripgrep,以及用于查找文件的 fd。
  • 一个支持真彩色和 undercurl 的终端。页面点名了 kitty(Linux 和 macOS),wezterm、alacritty 和 ghostty(Linux、macOS 和 Windows),以及 iTerm2(macOS)。

见 setup/requirements.md。

主要安装命令

先备份你现有的 Neovim 文件,再克隆 starter。这是 Installation 页面上 Linux 和 macOS 的方式,完整步骤见 setup/linux-and-macos.md。

git clone https://github.com/LazyVim/starter ~/.config/nvim

来源见 https://lazyvim.github.io/installation

各平台说明

  • setup/linux-and-macos.md
  • setup/windows.md:PowerShell
  • setup/docker.md:Installation 页面和 README 里的 docker run 命令
  • setup/requirements.md:每项要求是做什么用的
  • setup/configure.md:选项、插件、快捷键、配色方案和版本
  • setup/keymaps-and-extras.md:which-key 菜单、:LazyExtras 和 AI 扩展
  • setup/learn.md:入门视频和那本免费的书

更新或卸载

Mindket 读过的页面没有给出更新步骤,也没有给出卸载步骤。不过它们说明了机器上有什么:

  • 更新:starter 的 lua/config/lazy.lua 打开了 lazy.nvim 的更新检查,但关掉了通知。Keymaps 页面列出 <leader>l 对应 Lazy,<leader>L 对应 LazyVim Changelog。Configuration 页面说,LazyVim 的 NEWS.md 有改动时会显示出来,内容只包括重大新功能和不兼容的改动。Plugins 页面让你去 lazy.nvim 的 readme 看完整的插件 spec:https://github.com/folke/lazy.nvim
  • 卸载:Installation 页面的备份命令列出了 Neovim 和 LazyVim 用到的文件夹。这些说明(Mindket 的,不是项目的)按那份清单来。在 Linux 和 macOS 上是 ~/.config/nvim、~/.local/share/nvim、~/.local/state/nvim 和 ~/.cache/nvim。在 Windows 上是 $env:LOCALAPPDATA\nvim 和 $env:LOCALAPPDATA\nvim-data。你放在那里的其他 Neovim 配置也在这些文件夹里,所以删除之前先看一看。

对外连接

Mindket 读过的页面描述了这些:

  • 第一次启动时用 git clone 从 https://github.com/folke/lazy.nvim.git 克隆 lazy.nvim(见 https://lazyvim.github.io/configuration/lazy.nvim 上展示的 lua/config/lazy.lua)。
  • 然后 lazy.nvim 安装 LazyVim 和它导入的插件。页面要求 Git 2.19.0 或更新版本以支持部分克隆,lua/config/lazy.lua 里的克隆命令用了 --filter=blob:none。
  • 更新检查会自己查找插件的新版本。
  • mason.nvim 安装语言服务器和工具:starter 的 lua/plugins/example.lua 说 pyright 'will be automatically installed with mason',即会由 mason 自动安装。
  • nvim-treesitter 安装解析器。What's new 页面(15.x)说安装解析器需要 tree-sitter cli。
  • Getting Started 页面列出 curl 供补全引擎 blink.cmp 使用,但没有说 blink.cmp 拿它做什么。

这些页面对遥测和账号都没有提。

来源

  • README:https://github.com/LazyVim/LazyVim/blob/main/README.md
  • Getting Started:https://lazyvim.github.io
  • Installation:https://lazyvim.github.io/installation
  • Configuration:https://lazyvim.github.io/configuration
  • General Settings:https://lazyvim.github.io/configuration/general
  • Plugins:https://lazyvim.github.io/configuration/plugins
  • lazy.nvim:https://lazyvim.github.io/configuration/lazy.nvim
  • Keymaps:https://lazyvim.github.io/keymaps
  • Core Plugins:https://lazyvim.github.io/plugins
  • Extras:https://lazyvim.github.io/extras
  • What's new:https://lazyvim.github.io/news
  • starter 的 README:https://github.com/LazyVim/starter/blob/main/README.md
  • starter 的 example.lua:https://github.com/LazyVim/starter/blob/main/lua/plugins/example.lua
文件
README.md  6 KB
setup/configure.md  4 KB
setup/docker.md  1 KB
setup/keymaps-and-extras.md  3 KB
setup/learn.md  2 KB
setup/linux-and-macos.md  2 KB
setup/requirements.md  1 KB
setup/windows.md  2 KB

8 个文件,共 21 KB,以 zip 压缩包下载。

更新内容

  • 第 2 版 · 2026-11-09

    Updated by Mindket to the current version of this kit.

  • 第 1 版 · 2026-11-03

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

DavideNLMultiple Cursor Mode in LazyVim – LazyVim for Ambitious Developers1 分The Projektkickstart.nvim is one commented init.lua, so the evening goes into reading what each line does instead of hunting plugins. LazyVim is faster on day one, right up until you want to change something it hides.2 赞@psycipher当初排除 bin/ 的 PR: https://t.co/vX0Ix8JSCfr/unixporn[KDE] Rose Pine inspired from another postalonp99LazyVim1 分@archiveos.bsky.socialLazyVim – a Neovim setup powered by lazy.nvim to make it easy to customize and extend your config. Rather than having to choose between starting from scratch or using a pre-made distro, LazyVim offers... archiveapp.org/lazyvim/ #texteditor #vim #linux #osx #windows1 赞@nickjanetakisDid you know a while back shfmt added zsh support for formatting your shell scripts? I added a PR recently for LazVim to auto-format zsh by default in https://t.co/LbM1AU3x2z. This already exists in DotFriedRice https://t.co/6qZQxhL50p so we don't have to wait for the PR there.noelwelshMovwin: My (Unpublished) TUI FrameworkTUIs in Prolog sounds fun. The great thing about TUIs is that a simple text component is a universal widget. If the user can display text and capture events they can implement any interface components they want in terms of that. That said, whatever the framework provides pushes users in a…Pragg SnarboI’m so excited to move away from electron based apps that bundle an entire browser and instead move towards rich TUIs. All the ‘lazy{service}’ apps like lazyvim, lazydocker, lazykube etc are such a pleasure to use.1 赞sceleratI set all 376 Vim options and I'm still a foolI think it took me about four months of daily use to know most of the editor basics without having to pause to look up things. Another eight for it all to feel natural. And, maybe about six years later, it remains my favorite text entry and code editing environment. I've been using the LazyVim…Matthew SetterSure, I skipped a lot of the configuration by using the wonderful LazyVim project. But, I don't need to do everything myself. A huge hat-tip to that project. If you've not heard of it and you're a Neovim user, it's well worth checking out.1 条回复rmunnMicrosoft makes Zork open-sourceEveryone's recommending books; I'm going to do the opposite and recommend a specific dialect. Install Clojure. Read https://clojure.org/guides/getting_started and choose an editor. If you don't have a favorite editor, I recommend NeoVim with the LazyVim package (clone…

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

Bonsai-27B-GGUF

lmstudio-community · 工具包

面向 LM Studio 的 27B Bonsai 模型 GGUF 转换版,含 3.80 GB 的 Q1_0 语言文件和 0.93 GB 的 BF16 视觉投影器。已测试文本、视觉和并行工具调用。

新上架

以每权重 2.9 位的 EXL3 量化运行 DeepSeek-V4.1-Flash-1017,这是一份 196 GiB 的副本,适合在自己硬件上部署大模型的人。困惑度与原模型相差不大。

新上架

MusicGen Small

facebook · 工具包

根据文字描述或音频提示生成短音乐片段,是 facebook MusicGen 的 small 检查点。适合想在自己电脑上试用文字生成音乐的开发者和音乐爱好者。

新上架

开发类的相似商品

查看开发类的全部商品

Lexnet

alpindale · 工具包

用一个只有约 984 个权重的小型神经网络,为 C 源代码的每个字符打上语法高亮标签,通过一个小小的 C 程序运行。适合对手工设计的网络好奇的开发者和研究者。

新上架

FLUX.2 Klein LoRA Studio

prithivMLmods · 工具包

在浏览器或你自己的电脑上,用一个 Gradio 应用试用 FLUX.2 Klein 图像模型的一组 LoRA。适合制作或测试 AI 图片的人。

新上架

anaksor-ocr

Sokheng · 工具包

这个模型从文档、收据和路牌照片里读取高棉语和英语文字,用一个检测器找文本行,再用识别器读每一行。适合需要在 Python 里做高棉语 OCR 的开发者。

新上架