{"id":51099798,"url":"https://github.com/Crysthamus/nvim-file-operations","last_synced_at":"2026-06-26T07:01:13.372Z","repository":{"id":360510362,"uuid":"1249883323","full_name":"Crysthamus/nvim-file-operations","owner":"Crysthamus","description":"Neovim plugin that adds support for file operations using LSPs.","archived":false,"fork":false,"pushed_at":"2026-05-26T17:29:03.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T19:16:13.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Crysthamus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-26T05:49:09.000Z","updated_at":"2026-05-26T17:29:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Crysthamus/nvim-file-operations","commit_stats":null,"previous_names":["crysthamus/nvim-file-operations"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Crysthamus/nvim-file-operations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crysthamus%2Fnvim-file-operations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crysthamus%2Fnvim-file-operations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crysthamus%2Fnvim-file-operations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crysthamus%2Fnvim-file-operations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crysthamus","download_url":"https://codeload.github.com/Crysthamus/nvim-file-operations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crysthamus%2Fnvim-file-operations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34806448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-24T10:00:24.335Z","updated_at":"2026-06-26T07:01:13.362Z","avatar_url":"https://github.com/Crysthamus.png","language":"Lua","funding_links":[],"categories":["LSP"],"sub_categories":[],"readme":"# nvim-file-operations\n`nvim-file-operations` is a Neovim plugin that adds support for workspace file operations using built-in [LSP](https://neovim.io/doc/user/lsp.html)s. \nThis plugin serves as a modern, maintained, and direct drop-in replacement for [`nvim-lsp-file-operations`](https://github.com/antosha417/nvim-lsp-file-operations).\nIt works by subscribing to events emitted by file managers like [`nvim-tree`](https://github.com/nvim-tree/nvim-tree.lua), [`neo-tree`](https://github.com/nvim-neo-tree/neo-tree.nvim), and [`triptych`](https://github.com/simonmclean/triptych.nvim).\n\n## Features\n- **Full Specification Support:** Implements all [`workspace.fileOperations`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_fileOperations) in the current LSP spec:\n  - [`workspace/willRenameFiles`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_willRenameFiles)\n  - [`workspace/didRenameFiles`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didRenameFiles)\n  - [`workspace/willCreateFiles`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_willCreateFiles)\n  - [`workspace/didCreateFiles`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didCreateFiles)\n  - [`workspace/willDeleteFiles`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_willDeleteFiles)\n  - [`workspace/didDeleteFiles`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didDeleteFiles)\n\nIt also has faster startup times and better performance than `nvim-lsp-file-operations`\n\u003cimg width=\"432\" height=\"40\" alt=\"2026-05-26 11-16-25\" src=\"https://github.com/user-attachments/assets/16f4b8f3-257d-4393-be91-e91b6451042f\" /\u003e\n\n\n## Installation\n\n### Using lazy.nvim\n\n```lua\nreturn {\n  {\n    \"Crysthamus/nvim-file-operations\",\n    dependencies = {\n      -- Uncomment whichever supported plugin(s) you use\n      -- \"nvim-tree/nvim-tree.lua\",\n      -- \"nvim-neo-tree/neo-tree.nvim\",\n      -- \"simonmclean/triptych.nvim\"\n    },\n    config = function()\n      require(\"nvim-file-operations\").setup()\n    end,\n  },\n}\n```\nPlease use `branch = \"compat\"`, if you are using versions older than 0.11\n\n## Setup\nInitialize the plugin with the default configuration:\n```lua\nrequire(\"nvim-file-operations\").setup()\n```\n\nTo override the defaults, pass an options table:\n```lua\nrequire(\"nvim-file-operations\").setup({\n  -- Select which file operations to enable\n  operations = {\n    willRenameFiles = true,\n    didRenameFiles = true,\n    willCreateFiles = true,\n    didCreateFiles = true,\n    willDeleteFiles = true,\n    didDeleteFiles = true,\n  },\n  -- How long to wait (in milliseconds) for LSP responses before cancelling\n  timeout_ms = 10000,\n  -- Saves modifies files after renames, moves, etc.\n  auto_save = false\n})\n```\n\nSome LSP servers also expect to be informed about the extended client capabilities:\n```lua\nvim.lsp.config(\"*\", {\n  capabilities = require(\"nvim-file-operations.config\").default_capabilities(),\n})\n```\n\n## API\n\n### rename(opts)\nRenames a file on disk, updates matching Neovim buffers to the new path, and notifies LSP clients.\n```lua\nrequire(\"nvim-file-operations\").rename({\n  old_name = \"path/to/old_file.lua\", -- Optional. Defaults to active buffer.\n  new_name = \"path/to/new_file.lua\", -- Required.\n})\n```\n\n### create(opts)\nCreates a new file on disk, ensures parent directories exist, notifies LSP clients, and opens the file.\n```lua\nrequire(\"nvim-file-operations\").create({\n  fname = \"path/to/new_file.lua\", -- Required.\n})\n```\n\n### delete(opts)\n```lua\nrequire(\"nvim-file-operations\").delete({\n  fname = \"path/to/target.lua\", -- Optional. Defaults to active buffer.\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCrysthamus%2Fnvim-file-operations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCrysthamus%2Fnvim-file-operations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCrysthamus%2Fnvim-file-operations/lists"}