nvim-lsp-file-operations
446
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Lua
语言
—
创建时间
最近更新
项目能做什么
为 Neovim 内置 LSP 添加文件操作支持的插件。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# nvim-lsp-file-operations `nvim-lsp-file-operations` is a Neovim plugin that adds support for file operations using [built-in LSP support](https://neovim.io/doc/user/lsp/). This plugin works by subscribing to events emitted by either of these plugins (other integrations may be added if needed): - [nvim-neo-tree/neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) - [nvim-tree/nvim-tree.lua](https://github.com/nvim-tree/nvim-tree.lua) - [simonmclean/triptych.nvim](https://github.com/simonmclean/triptych.nvim) <https://user-images.githubusercontent.com/14187674/211327507-39f21a74-0a43-43f0-ba3e-91109125286c.mp4> --- ## Features Full implementation of all `workspace.fileOperations` for [the current LSP spec](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/): - [`workspace/DidCreate`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#workspace_didCreateFiles) - [`workspace/DidDelete`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#workspace_didDeleteFiles) - [`workspace/DidRename`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#workspace_didRenameFiles) - Tested in: - [lua-language-server](https://github.com/LuaLS/lua-language-server) - [vtsls](https://github.com/yioneko/vtsls) - [`workspace/WillCreate`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#workspace_willCreateFiles) - [`workspace/WillDelete`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#workspace_willDeleteFiles) - [`workspace/WillRename`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#workspace_willRenameFiles) - Tested in: - [basedpyright](https://docs.basedpyright.com/latest) - [metals](https://scalameta.org/metals/) - [rust-analyzer](https://rust-analyzer.github.io/) - [typescript-language-server](https://github.com/typescript-language-server/typescript-language-server) **If you have use cases for any other operations please open an issue.** --- ## Table of Contents - [Installation](#installation) - [Setup](#setup) - [LSP Capabilities](#lsp-capabilities) - [User Command](#user-command) - [API](#api) - [`create()`](#create) - [`delete()`](#delete) - [`rename()`](#rename) - [Contributing](#contributing) - [Credits](#credits) - [License](#license) --- ## Installation > [!WARNING] > **The order in which the plugins are loaded matters!** > > Avoid installing this plugin as a dependency for either `nvim-tree.lua`, `neo-tree` and/or `triptych`! > > For example, `neo-tree.nvim` must already be loaded before `nvim-lsp-file-operations` for this to work, > so `nvim-lsp-file-operations` depends on `neo-tree.nvim`, not the other way around! <details> <summary><a href="https://github.com/lewis6991/pckr.nvim">pckr.nvim</a></summary> ```lua require阅读完整原文
项目深度分析 AI 生成
Neovim 企业级开箱即用套件/订阅
| 产品构想 | 整合该插件及其他深度重构、LSP、调试工具,打包成针对企业团队开箱即用的闭源或商业版 Neovim 发行版,提供一键安装与集中维护服务。 |
| 核心功能 | 深度集成的文件与代码重构体验、预配置的各语言 LSP/DAP/Linter、团队共享配置中心、定期自动化依赖维护。 |
| 目标用户 | 偏好终端开发但缺乏时间折腾配置的中高级开发者、研发团队负责人。 |
| 难度/周期 | 高 · 3-6个月 · 成本:中等(主要是全平台配置测试与支持人力成本) |
| 收费模式 | 按人头订阅付费或买断制分发商业配置包。 |
| 竞争风险 | 开源社区大量存在成熟免费发行版(如 LazyVim、AstroNvim),付费意愿极其微弱。 |
| 依据 | AI推测 |
跨编辑器 LSP 重构与迁移命令行增强工具
| 产品构想 | 将 LSP 文件操作与重构逻辑抽离为独立的 CLI 工具,脱离特定文件树插件,在终端批量重命名/重构文件时自动触发 LSP 引用修改。 |
| 核心功能 | CLI 下交互式批量文件重命名、自动调用 LSP 服务器同步导入语句、重构前后 Diff 校验与回滚机制。 |
| 目标用户 | 终端高级用户、DevOps 工程师、大型单体仓库维护者。 |
| 难度/周期 | 中等 · 1-3个月 · 成本:低(单人开发成本) |
| 收费模式 | 基础功能开源,高级功能(如跨 Git 历史回滚、自动化 PR 生成)作为商业 Pro 版或收费 CLI。 |
| 竞争风险 | 目标用户群体极小,开发成本与收益不成正比,LSP CLI 协议支持成熟度因语言而异。 |
| 依据 | AI推测 |
开源赞助与专业技术支持咨询
| 产品构想 | 保持插件开源,为大型组织或重度依赖 Neovim 的技术团队提供定制语言服务器(LSP)对接、企业内网 IDE 环境配置与性能调优咨询服务。 |
| 核心功能 | 私有 LSP 插件适配、复杂 Monorepo 文件操作重构性能调优、Sponsor 特权技术支持。 |
| 目标用户 | 依赖 Neovim 的开发顾问、极客型初创团队、独立技术团队。 |
| 难度/周期 | 低 · 持续进行 · 成本:极低 |
| 收费模式 | GitHub Sponsors、Open Collective 赞助,或按小时收取技术咨询费。 |
| 竞争风险 | Vim 生态赞助收入极低,无法作为独立商业模式支撑长期运营。 |
| 依据 | 数据支持的判断 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 6 个 Release |
| 社区活跃 | Star 446 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。