llm.nvim
1,195
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Lua
语言
创建时间
最近更新
项目能做什么
基于 LLM 的 Neovim 智能开发插件。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# LLM powered development for Neovim
**llm.nvim** is a plugin for all things LLM. It uses [**llm-ls**](https://github.com/huggingface/llm-ls) as a backend.
This project is influenced by [copilot.vim](https://github.com/github/copilot.vim) and [tabnine-nvim](https://github.com/codota/tabnine-nvim)
Formerly **hfcc.nvim**.

> [!NOTE]
> When using the Inference API, you will probably encounter some limitations. Subscribe to the *PRO* plan to avoid getting rate limited in the free tier.
>
> https://huggingface.co/pricing#pro
## Features
### Code completion
This plugin supports "ghost-text" code completion, à la Copilot.
### Choose your model
Requests for code generation are made via an HTTP request.
You can use the Hugging Face [Inference API](https://huggingface.co/inference-api) or your own HTTP endpoint, provided it adheres to the APIs listed in [backend](#backend).
### Always fit within the context window
The prompt sent to the model will always be sized to fit within the context window, with the number of tokens determined using [tokenizers](https://github.com/huggingface/tokenizers).
## Configuration
### Backend
**llm.nvim** can interface with multiple backends hosting models.
You can override the url of the backend with the `LLM_NVIM_URL` environment variable. If url is `nil`, it will default to the Inference API's [default url](https://github.com/huggingface/llm-ls/blob/8926969265990202e3b399955364cc090df389f4/crates/custom-types/src/llm_ls.rs#L8)
When `api_token` is set, it will be passed as a header: `Authorization: Bearer <api_token>`.
**llm-ls** will try to add the correct path to the url to get completions if it does not already end with said path. You can disable this behavior by setting `disable_url_path_completion` to true.
#### Inference API
##### **backend = "huggingface"**
[API](https://huggingface.co/docs/api-inference/detailed_parameters#text-generation-task)
1. Create and get your API token from here https://huggingface.co/settings/tokens.
2. Define how the plugin will read your token. For this you have multiple options, in order of precedence:
1. Pass `api_token = <your token>` in plugin opts - this is not recommended if you use a versioning tool for your configuration files
2. Set the `LLM_NVIM_HF_API_TOKEN` environment variable
3. You can define your `HF_HOME` environment variable and create a file containing your token at `$HF_HOME/token`
4. Install the [huggingface-cli](https://huggingface.co/docs/huggingface_hub/quick-start) and run `huggingface-cli login` - this will prompt you to enter your token and set it at the right path
3. Choose your model on the [Hugging Face Hub](https://huggingface.co/), and, in order of precedence, you can either:
1. Set the `LLM_NVIM_MODEL` environment variable
2. Pass `model = <model identifier>` in plugin opts
Note: the `model`'s value will be appended to the url like so : `{url}/model/
阅读完整原文
商业机会分析 AI 生成
开发者专属代码补全专属低延迟云网关
| 产品构想 | 针对使用 llm.nvim 等开源编辑插件的用户,提供按量计费的极速代码补全中继服务,聚合多个高性价比代码大模型并做延迟优化(如预热、推流与智能缓存)。 |
| 核心功能 | OpenAI 格式兼容接入、极致降低首字延迟(TTFT)、预设专门微调的高性价比代码补全模型组合、消耗用量实时看板。 |
| 目标用户 | 不愿在本地跑大模型(显存不足),但又嫌官方 API(如 HF Inference/各家原生接口)延迟高或易受限的独立开发者。 |
| 难度/周期 | 中等 · 2-4 周 · 成本:中等(GPU 实例租用或聚合中转服务器成本) |
| 收费模式 | 按 Token 用量充值或每月订阅制(如 $5-10/月包一定量额度)。 |
| 竞争风险 | 面对各大云厂商(Groq、DeepSeek 等)低价策略挤压,纯中转利润空间微薄。 |
| 依据 | 已验证事实 |
企业私有化 Neovim 代码助手交付套件
| 产品构想 | 为有数据安全合规要求的研发团队,提供基于 vLLM/Ollama + 专属代码库检索(RAG/Embedding)+ llm.nvim 预配置脚本的私有化代码辅助落地套件。 |
| 核心功能 | 一键 Docker 部署内部推理网关、企业内网代码库上下文索引模块、适配 llm.nvim/VSCode 等客户端的标准接入文档与预设配置。 |
| 目标用户 | 金融、政企、硬科技等限制代码外发但团队内部有 Vim/Neovim 极客文化的技术团队。 |
| 难度/周期 | 高 · 1-2 个月 · 成本:低(主要为人力与开发测试环境成本) |
| 收费模式 | 企业买断授权费 + 私有化实施部署咨询费 + 每年维保升级费。 |
| 竞争风险 | 纯 Neovim 用户在企业内群体占比通常偏小,客群基数有限,可能需要连带覆盖 VSCode 等多端。 |
| 依据 | AI推测 |
Neovim 深度优化版开箱即用发行版/生态增值支持
| 产品构想 | 将 llm.nvim 与高级 LSP、代码质量检测、多模型切换配置打包,提供类似 LazyVim/AstroNvim 风格的高性能开箱即用 AI 编程配置套件与专属技术支持社区。 |
| 核心功能 | 一键安装脚本、预配置的多模型快速切换(HF/Ollama/OpenAI)、智能上下文增强配置、持续更新的兼容性维护服务。 |
| 目标用户 | 想要在 Neovim 获得不输 Cursor/Copilot 体验但缺乏繁琐配置时间的工程师。 |
| 难度/周期 | 低 · 1-2 周 · 成本:极低(纯开源配置与社区运营) |
| 收费模式 | GitHub Sponsors 赞助、Gumroad 付费电子书/配套配置教程、会员专享的高级配置模板库。 |
| 竞争风险 | 开源圈对配置类产品付费意愿弱,天花板较低,更适合作为个人影响力变现而非商业化公司运作。 |
| 依据 | 数据支持的判断 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| yacineMTB/dingllm.nvim | 中文介绍暂未生成 Yacine's LLM nvim scripts |
852 | Lua |
| Kurama622/llm.nvim | 中文介绍暂未生成 A large language model (LLM) plugin for Neovim, provides com |
480 | Lua |
| melbaldove/llm.nvim | 中文介绍暂未生成 No frills LLM-assisted programming |
250 | Lua |
| default-anton/llm-sidekick.nvim | 中文介绍暂未生成 AI-powered companion for Neovim. Fast, hackable, and stays o |
20 | Lua |
| PreziosiRaffaele/markdown-llm.nvim | 中文介绍暂未生成 MarkdownLLM is a Neovim plugin that provides a simple, markd |
10 | Lua |
| julwrites/llm-nvim | 中文介绍暂未生成 Neovim plugin for llm CLI |
9 | Lua |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 |
| 社区活跃 | Star 1,195 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/huggingface/llm.nvim.git cd llm.nvim # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。