{"id":22006313,"url":"https://github.com/javiorfo/nvim-hemingway","last_synced_at":"2025-09-10T11:36:19.875Z","repository":{"id":71130017,"uuid":"596361193","full_name":"javiorfo/nvim-hemingway","owner":"javiorfo","description":"Neovim plugin for commenting code","archived":false,"fork":false,"pushed_at":"2025-02-09T19:23:27.000Z","size":96,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T21:53:36.015Z","etag":null,"topics":["commentary","comments","neovim","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javiorfo.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":"2023-02-02T02:23:54.000Z","updated_at":"2025-03-04T17:18:18.000Z","dependencies_parsed_at":"2023-07-13T01:01:28.469Z","dependency_job_id":"5b076fa4-7859-43ce-8546-84d32c35e88d","html_url":"https://github.com/javiorfo/nvim-hemingway","commit_stats":null,"previous_names":["charkuils/nvim-hemingway","javiorfo/nvim-hemingway","caosystema/nvim-hemingway","progrimorio/nvim-hemingway","orfosys/nvim-hemingway","chaosystema/nvim-hemingway"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/javiorfo/nvim-hemingway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-hemingway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-hemingway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-hemingway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-hemingway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiorfo","download_url":"https://codeload.github.com/javiorfo/nvim-hemingway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-hemingway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274455641,"owners_count":25288557,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"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":["commentary","comments","neovim","neovim-plugin"],"created_at":"2024-11-30T01:11:34.784Z","updated_at":"2025-09-10T11:36:19.821Z","avatar_url":"https://github.com/javiorfo.png","language":"Lua","funding_links":["https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G"],"categories":[],"sub_categories":[],"readme":"# nvim-hemingway\n*nvim-hemingway is a minimal Neovim plugin written in Lua for commenting code.*\n\n## Caveats\n- This plugin has been developed on and for Linux following open source philosophy.\n\n## Overview\n| Feature | nvim-hemingway | NOTE |\n| ------- | ------------- | ---- |\n| Single comment | :heavy_check_mark: | Set by `HemingwayComment` |\n| Multiline comment | :heavy_check_mark: | Set by `HemingwayMultiComment` |\n| Comment on Normal Mode | :heavy_check_mark: | Using `HemingwayComment` |\n| Comment on Visual Mode | :heavy_check_mark: | Using `HemingwayMultiComment` |\n| Comment on Insert Mode | :x: |  |\n| Undo comment | :heavy_check_mark: | Executing the same command over a commented line |\n| Supported filetypes | :heavy_check_mark: | [Check this file](https://github.com/javiorfo/nvim-hemingway/blob/master/lua/hemingway.lua) |\n| Add comment to filetype not included | :heavy_check_mark: | By the `setup` function |\n\n## Installation\n`Packer`\n```lua\nuse {\n    'javiorfo/nvim-hemingway',\n    requires = 'javiorfo/nvim-popcorn'\n}\n```\n`Lazy`\n```lua\n{\n    'javiorfo/nvim-hemingway',\n    lazy = true,\n    dependencies = { 'javiorfo/nvim-popcorn' },\n    cmd = { \"HemingwayInfo\" },\n    keys = {\n        { \"\u003cleader\u003eco\", \"\u003cPlug\u003eHemingwayComment\" },\n        { \"\u003cleader\u003eco\", \"\u003cPlug\u003eHemingwayMultiComment\", mode = \"v\" },\n    }\n}\n```\n\n## Usage\n- Set mappings in *init.lua* (Packer)\n```lua\nlocal opts = { noremap = true, silent = true }\n\n-- Normal mode \nvim.api.nvim_set_keymap('n', '\u003cleader\u003eco', '\u003cPlug\u003eHemingwayComment', opts)\n-- Visual mode\nvim.api.nvim_set_keymap('v', '\u003cleader\u003eco', '\u003cPlug\u003eHemingwayMultiComment\u003cCR\u003e', opts)\n```\n- Executing the map corresponding to `HemingwayComment` with the cursor in a specific line, it will comment the aforementioned line with the corresponding **comment string** of the file.\n- In **VISUAL MODE**. Executing the map corresponding to `HemingwayMultiComment` with the cursor in a specific line or multiple lines will comment the aforementioned line (or lines) with the **comment string** of the file.\n- Executing any of these commands in a commented line  will uncomment that line (or lines)\n- The main strings used for comments are the ones taken from [this file](https://github.com/javiorfo/nvim-hemingway/blob/master/lua/hemingway.lua). If there is no value for the file you are using, you can set it in your personal Neovim init.lua:\n```lua\n-- Depending on the filetype comment style\nrequire'hemingway'.add_comments{\n    myfiletype1 = { single = \"** \" },\n    myfiletype2 = { left = \"*|* \", right = \" *|*\" },\n    myfiletype3 = { single = \"** \", left = \"*|* \", right = \" *|*\"  },\n}\n```\n- To see commentary info about the current file, execute command line `:HemingwayInfo`\n\n## Screenshots\n### Comments in Java and XML files:\n\n\u003cimg src=\"https://github.com/javiorfo/img/blob/master/nvim-hemingway/hemingway.gif?raw=true\" alt=\"lua comments\" /\u003e\n\n**NOTE:** The colorscheme **umbra** from [nvim-nyctophilia](https://github.com/javiorfo/nvim-nyctophilia) is used in these images.\n\n---\n\n### Donate\n- **Bitcoin** [(QR)](https://raw.githubusercontent.com/javiorfo/img/master/crypto/bitcoin.png)  `1GqdJ63RDPE4eJKujHi166FAyigvHu5R7v`\n- [Paypal](https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fnvim-hemingway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviorfo%2Fnvim-hemingway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fnvim-hemingway/lists"}