Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

lazy-nvim-optimization懒惰的 nvim 优化

Agent Skill

lazy-nvim-optimization 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

776

周安装

33

GitHub Stars

9

下载量

272
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lazy-nvim-optimization(懒惰的 nvim 优化)
来源仓库:https://github.com/kriscard/kriscard-claude-plugins
仓库路径:skills/lazy-nvim-optimization
安装命令:
npx skills add https://github.com/kriscard/kriscard-claude-plugins --skill lazy-nvim-optimization
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kriscard/kriscard-claude-plugins --skill lazy-nvim-optimization

简介

lazy-nvim-optimization 用于处理 GitHub 仓库、Issue、Pull Request 等协作信息,适合代码变更跟踪。

  • 适用于需要围绕仓库状态或协作事项进行整理的场景,如项目进度管理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,注意可能触发联网或命令执行操作。
  • 使用时需核实来源仓库内容,避免依赖未经验证的外部资源。

SKILL.md

Lazy.nvim Optimization

Diagnose and fix Neovim startup performance through profiling and targeted lazy-loading.

Profiling Workflow

When a user reports slow startup, follow this sequence — don't skip to solutions.

Step 1: Measure Baseline

nvim --startuptime startup.log && tail -1 startup.log

Compare against targets:

  • < 30ms: Excellent
  • 30-50ms: Good
  • 50-100ms: Acceptable
  • 100ms: Needs work

Step 2: Identify Slow Plugins

:Lazy profile

Look for plugins with load time > 10ms. These are your optimization targets. Sort by time, not alphabetically.

Also check the startup log for:

  • Files taking > 10ms to source
  • setup() functions taking > 5ms
  • Synchronous operations blocking startup

Step 3: Apply Lazy-Loading

For each slow plugin, choose the right trigger:

Plugin TypeTriggerExample
Has clear commandscmdcmd = "Telescope"
Accessed via keybindingskeyskeys = {"<leader>e"}
Language-specificftft = {"rust", "go"}
Needed after UI rendersevent = "VeryLazy"UI enhancements
Needed when editingevent = "BufReadPost"Git signs, diagnostics
Needed in insert modeevent = "InsertEnter"Completion, autopairs
Only used as dependencylazy = trueplenary.nvim

Step 4: Verify Improvement

nvim --startuptime startup-after.log && tail -1 startup-after.log

Compare total times. Then :Lazy profile to verify plugins load when expected.

What NOT to Lazy-Load

These need to load at startup — don't fight it:

  • Colorscheme — Set priority = 1000 so it loads first. Visible flash if deferred.
  • Treesitter — Needed for syntax highlighting immediately. Deferring causes flicker.
  • Statusline — Visible at startup. Deferring causes layout shift.
  • which-key — Only if it shows on startup. Otherwise can lazy-load.
  • LSP base setup — Though individual servers can lazy-load by filetype.

Common Bottlenecks

Synchronous system calls at startup:

-- Bad: blocks startup
vim.fn.system("git status")

-- Good: defer it
vim.defer_fn(function()
  vim.fn.system("git status")
end, 100)

Loading all LSP servers at once: Consider loading LSP servers per-filetype instead of all at startup. Each server you don't load saves 5-15ms.

Plugins without any trigger: A bare {"plugin/name"} spec loads at startup. Always add a trigger unless the plugin genuinely needs immediate availability.

Performance Checklist

Startup

  • Colorscheme has priority = 1000
  • File explorers load on cmd/keys
  • Git interfaces load on cmd/keys
  • Completion loads on InsertEnter
  • Language plugins load on filetype
  • UI enhancements load on VeryLazy

Runtime

  • Telescope uses fzf-native extension
  • Treesitter parsers installed only for used languages
  • LSP servers only for filetypes you use
  • No plugins duplicating built-in 0.10+ features

Config

  • No synchronous system calls at startup
  • setup() only runs when plugins load
  • Keymaps defined with plugin lazy-loading
  • Auto-commands use specific events, not "*"

Reference Files

For detailed information:

  • references/lazy-loading-decision-tree.md - Decision tree for choosing lazy-loading strategy
  • references/profiling-guide.md - Advanced profiling techniques

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.82%
按下载量换算92

Claude

29.16%
按下载量换算79

Cursor

18.59%
按下载量换算51

Gemini CLI

9.3%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills