{"id":13412383,"url":"https://github.com/nguyenvukhang/nvim-toggler","last_synced_at":"2025-09-08T07:31:10.506Z","repository":{"id":57758496,"uuid":"525314009","full_name":"nguyenvukhang/nvim-toggler","owner":"nguyenvukhang","description":"invert text in vim, purely with lua.","archived":false,"fork":false,"pushed_at":"2024-06-15T14:39:19.000Z","size":37,"stargazers_count":158,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-26T21:07:29.324Z","etag":null,"topics":["lua","neovim","nvim","nvim-lua"],"latest_commit_sha":null,"homepage":"","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/nguyenvukhang.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}},"created_at":"2022-08-16T09:33:05.000Z","updated_at":"2024-12-26T20:02:11.000Z","dependencies_parsed_at":"2024-10-14T18:40:54.303Z","dependency_job_id":null,"html_url":"https://github.com/nguyenvukhang/nvim-toggler","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvukhang%2Fnvim-toggler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvukhang%2Fnvim-toggler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvukhang%2Fnvim-toggler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenvukhang%2Fnvim-toggler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nguyenvukhang","download_url":"https://codeload.github.com/nguyenvukhang/nvim-toggler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232287401,"owners_count":18499949,"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":["lua","neovim","nvim","nvim-lua"],"created_at":"2024-07-30T20:01:24.064Z","updated_at":"2025-01-03T04:14:06.573Z","avatar_url":"https://github.com/nguyenvukhang.png","language":"Lua","funding_links":[],"categories":["Utility","Lua","Editing Support"],"sub_categories":["Cursorline","Scrollbar"],"readme":"# nvim-toggler\n\nInvert text in vim, purely with lua.\n\n![demo](https://user-images.githubusercontent.com/10664455/185724246-f7165f38-6058-46f3-809b-d55cf09255e3.gif)\n\n[Install](#install)\n\u0026nbsp;\u0026middot;\u0026nbsp;\n[Run](#run)\n\u0026nbsp;\u0026middot;\u0026nbsp;\n[Custom inverses](#custom-inverses)\n\u0026nbsp;\u0026middot;\u0026nbsp;\n[Custom keymaps](#custom-keymaps)\n\n## Install\n\nUsing [packer.nvim][packer]\n\n```lua\nuse { 'nguyenvukhang/nvim-toggler' }\n```\n\nUsing [vim-plug][vim-plug]\n\n```vim\nPlug 'nguyenvukhang/nvim-toggler'\n```\n\n## Run\n\n```lua\n-- init.lua\nrequire('nvim-toggler').setup()\n```\n\n```vim\n\" init.vim or .vimrc\nlua \u003c\u003c EOF\nrequire('nvim-toggler').setup()\nEOF\n```\n\nOnce that is set, the default binding is `\u003cleader\u003ei` to invert the\nword under your cursor.\n\n## Custom inverses\n\nYou can configure `nvim-toggler` with the `setup()` function:\n\n```lua\n-- init.lua\nrequire('nvim-toggler').setup({\n  -- your own inverses\n  inverses = {\n    ['vim'] = 'emacs'\n  },\n  -- removes the default \u003cleader\u003ei keymap\n  remove_default_keybinds = true,\n  -- removes the default set of inverses\n  remove_default_inverses = true,\n  -- auto-selects the longest match when there are multiple matches\n  autoselect_longest_match = false\n})\n```\n\n## Custom keymaps\n\nTo map toggling to something else like `\u003cleader\u003ecl`, simply do\n\n```lua\n-- init.lua\nvim.keymap.set({ 'n', 'v' }, '\u003cleader\u003ecl', require('nvim-toggler').toggle)\n```\n\n[packer]: https://github.com/wbthomason/packer.nvim\n[vim-plug]: https://github.com/junegunn/vim-plug\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenvukhang%2Fnvim-toggler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenvukhang%2Fnvim-toggler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenvukhang%2Fnvim-toggler/lists"}