登录 注册
开发者工具
7,184
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Lua
语言
创建时间
最近更新

项目能做什么

Neovim 缓冲区(buffers)专用的 Git 集成插件。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# gitsigns.nvim

[![CI](https://github.com/lewis6991/gitsigns.nvim/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/lewis6991/gitsigns.nvim/actions?query=workflow%3ACI)
[![Version](https://img.shields.io/github/v/release/lewis6991/gitsigns.nvim)](https://github.com/lewis6991/gitsigns.nvim/releases)
[![LuaRocks](https://img.shields.io/luarocks/v/lewis6991/gitsigns.nvim?logo=lua&color=purple)](https://luarocks.org/modules/lewis6991/gitsigns.nvim)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Dotfyle](https://dotfyle.com/plugins/lewis6991/gitsigns.nvim/shield)](https://dotfyle.com/plugins/lewis6991/gitsigns.nvim)


Deep buffer integration for Git

## 👀 Preview

| Hunk Actions | Line Blame |
| --- | ----------- |
| <img src="https://raw.githubusercontent.com/lewis6991/media/main/gitsigns_actions.gif" width="450em"/> | <img src="https://raw.githubusercontent.com/lewis6991/media/main/gitsigns_blame.gif" width="450em"/> |

## ✨ Features

<details>
  <summary><strong>Signs</strong></summary>

  - Adds signs to the sign column to indicate added, changed, and deleted lines.

    ![image](https://github.com/user-attachments/assets/e49ea0bf-c427-41fb-a67f-77c2d413a7cf)

  - Supports different signs for staged changes.

    ![image](https://github.com/user-attachments/assets/28a3e286-96fa-478c-93a3-8028f9bd7123)

  - Add counts to signs.

    ![image](https://github.com/user-attachments/assets/d007b924-6811-44ea-b936-d8da4dc00b68)


</details>

<details>
  <summary><strong>Hunk Actions</strong></summary>

  - Stage/unstage hunks with `:Gitsigns stage_hunk`.
  - Reset hunks with `:Gitsigns reset_hunk`.
  - Also works on partial hunks in visual mode.
  - Preview hunks inline with `:Gitsigns preview_hunk_inline`

    ![image](https://github.com/user-attachments/assets/60acd664-f4a8-4737-ba65-969f1efa7971)

  - Preview hunks in popup with `:Gitsigns preview_hunk`

    ![image](https://github.com/user-attachments/assets/d2a9b801-5857-4054-80a8-195d111f4e8c)

  - Navigate between hunks with `:Gitsigns nav_hunk next/prev`.

</details>

<details>
  <summary><strong>Blame</strong></summary>

  - Show blame of current buffer using `:Gitsigns blame`.

    ![image](https://github.com/user-attachments/assets/7d881e94-6e16-4f98-a526-7e785b11acf9)

  - Show blame information for the current line in popup with `:Gitsigns blame_line`.

    ![image](https://github.com/user-attachments/assets/03ff7557-b538-4cd1-9478-f893bf7e616e)

  - Show blame information for the current line in virtual text.

    ![image](https://github.com/user-attachments/assets/0c79e880-6a6d-4c3f-aa62-33f734725cfd)

    - Enable with `setup({ current_line_blame = true })`.
    - Toggle with `:Gitsigns toggle_current_line_blame`

</details>

<details>
  <summary><strong>Diff</strong></summary>

  - Change the revision for the signs with `:Gitsigns change_base <REVISION>`.
  - Show the diff of the current buffer with the ind
阅读完整原文

商业机会分析 AI 生成

Gitsigns Pro / 团队协作扩展(Enterprise/Pro Extension)

产品构想在 Gitsigns 基础上构建闭源或订阅制的增强插件,将 GitHub Enterprise / GitLab 等平台的 PR Review、Inline Comment、Code Owner 追溯无缝嵌入 Neovim 缓冲区。
核心功能Neovim 缓冲内读取与提交 PR 行级评审意见;结合 Gitsigns 的 Hunk 进行一键 Suggestion 应用;团队成员 Blame 状态与即时通讯状态关联(推测)
目标用户使用 Neovim 办公的远程开发工程师、技术主管、重度 CLI 极客团队
难度/周期高 · 2-3 个月 · 成本:个人全职时间、GitHub/GitLab API 测试沙箱环境与服务器成本
收费模式按个人订阅或按团队席位收费(如 $5-10/月)
竞争风险Neovim 用户群体对闭源/收费插件抵触情绪大,已有免费生态(如 octo.nvim)构成竞争替代
依据 尚需验证的假设

AI 辅助 Git 变更解释与提交助手(AI Commit & Hunk Explain)

产品构想利用 Gitsigns 捕获的实时 Hunk 状态,集成 LLM 能力,提供基于上下文的增量代码变更审查、风险预警及自动化高质量 Commit Message 生成。
核心功能一键针对 staged hunks 生成语义化 commit message;缓冲内变更代码安全与潜在 Bug 诊断;变更意图摘要并附带 Blame 历史上下文分析
目标用户高频提交、需要符合严格规范(如 Conventional Commits)的企业开发者
难度/周期中等 · 1 个月 · 成本:LLM API 调用中继服务、少量托管服务器费用
收费模式自带 API Key 免费 / 提供代充中继订阅(如 $4.99/月 Token 包)
竞争风险市面上已有大量通用 AI 插件(如 Avante.nvim, Copilot),差异化与护城河极低
依据 AI推测

赞助者订阅与生态周边(Sponsorware & Config-as-a-Service)

产品构想依托 7K+ Star 的顶流 Neovim 插件影响力,采用纯赞助/Sponsorware 模式,为高频贡献者提供预发布特性分支、深度性能调优指南及企业/团队定制 Neovim 开发环境集成配置方案。
核心功能GitHub Sponsors 专属 Insider 预览版本;针对超大 Monorepo(百万行)的 Git 性能优化专有补丁;企业级统一 Neovim Git 流程配置咨询
目标用户开源生态支持者、追求极致 Neovim 体验的高级开发者、需要统一终端研发环境的技术团队
难度/周期低 · 持续运营 · 成本:极低(主要为维护精力与文档编写)
收费模式GitHub Sponsors 个人/企业赞助($5-$500/月)、一对一咨询服务费
竞争风险赞助转化率极低,属于被动收入,通常难以支撑独立全职商业运作
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
ttys3/nvim-blamer.lua 中文介绍暂未生成
use https://github.com/lewis6991/gitsigns.nvim instead
35 Lua
calind/selenized.nvim 中文介绍暂未生成
Lua port of Selenized theme for Neovim with support for Tree
33 Lua
purarue/gitsigns-yadm.nvim 中文介绍暂未生成
gitsigns _on_attach_pre hook to show git decorations for fil
27 Lua
phanen/blame_hl.nvim 中文介绍暂未生成
Highlight gitsigns.nvim blame via diffs.nvim.
3 Lua
Charlie-83/jjsigns.nvim 中文介绍暂未生成
gitsigns.nvim but for jj
1 Lua
cpplain/flexoki-gitsigns.nvim 中文介绍暂未生成
A gitsigns.nvim color scheme integration for flexoki.nvim
1 Lua
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 15 个 Release
社区活跃Star 7,184 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/lewis6991/gitsigns.nvim.git
cd gitsigns.nvim
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。