{"id":27747460,"url":"https://github.com/TheLazyCat00/replace-nvim","last_synced_at":"2025-04-28T21:01:22.709Z","repository":{"id":289676430,"uuid":"972044848","full_name":"TheLazyCat00/replace-nvim","owner":"TheLazyCat00","description":"Neovim plugin for replacing parts of code.","archived":false,"fork":false,"pushed_at":"2025-04-24T13:13:59.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T14:25:29.673Z","etag":null,"topics":["neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheLazyCat00.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}},"created_at":"2025-04-24T13:00:50.000Z","updated_at":"2025-04-24T13:18:57.000Z","dependencies_parsed_at":"2025-04-24T14:25:33.125Z","dependency_job_id":"9b80c006-dba3-4383-b218-ca010a40b04e","html_url":"https://github.com/TheLazyCat00/replace-nvim","commit_stats":null,"previous_names":["thelazycat00/replace-nvim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLazyCat00%2Freplace-nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLazyCat00%2Freplace-nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLazyCat00%2Freplace-nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheLazyCat00%2Freplace-nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheLazyCat00","download_url":"https://codeload.github.com/TheLazyCat00/replace-nvim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251389338,"owners_count":21581779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["neovim-plugin"],"created_at":"2025-04-28T21:00:52.222Z","updated_at":"2025-04-28T21:01:22.540Z","avatar_url":"https://github.com/TheLazyCat00.png","language":"Lua","funding_links":[],"categories":["Recently Updated","Editing Support"],"sub_categories":["[Apr 28, 2025](/content/2025/04/28/README.md)","Scrollbar"],"readme":"# replace-nvim 📝\n\nreplace-nvim is a Neovim plugin that lets you replace parts of your code with the content from your clipboard using text objects. This means that if you bind `t` to it, you can do `tab` (`t` around block) and the content from the + register will be inserted into that section.\n\n[Demo](https://github.com/user-attachments/assets/1bbfe47b-f7df-42cf-9850-e306a2f51c02)\n\n## 🛠️ Configuration\n\nreplace-nvim has no options and is designed to be used via its functions.\n\n\u003e [!IMPORTANT]\n\u003e Make sure you set `expr` to `true` in the keymap.\n\nHere is an example config:\n\n```lua\nreturn {\n    \"TheLazyCat00/replace-nvim\",\n    opts = {},\n    keys = {\n        {\n            \"t\",\n            function() return require('replace-nvim').replace(true) end,\n            mode = { \"n\", \"x\" },\n            expr = true, -- ⚠️ set expr to true\n            desc = \"Replace with clipboard\",\n        },\n    },\n}\n```\n\n\u003e [!NOTE]\n\u003e `replace()` is the only available function.\n\n## 🚧 Parameters\n\n`replace()` has only parameter:\n\n- `writeToReg`: Determines whether the removed text should be placed in the + register.\n\n---\nFeel free to open issues or pull requests!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheLazyCat00%2Freplace-nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTheLazyCat00%2Freplace-nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTheLazyCat00%2Freplace-nvim/lists"}