{"id":22006305,"url":"https://github.com/javiorfo/nvim-spinetta","last_synced_at":"2025-05-05T21:51:03.699Z","repository":{"id":71130131,"uuid":"597122487","full_name":"javiorfo/nvim-spinetta","owner":"javiorfo","description":"Neovim library written in Lua for using a spinner during a job process","archived":false,"fork":false,"pushed_at":"2024-08-14T02:23:48.000Z","size":103,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-14T03:59:39.951Z","etag":null,"topics":["jobs","lua","neovim","neovim-plugin","neovim-spinner","spinner"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","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-03T17:18:47.000Z","updated_at":"2024-08-14T02:23:51.000Z","dependencies_parsed_at":"2023-07-09T18:00:41.913Z","dependency_job_id":"215344bd-ed6c-431f-a01d-d1d4f20fbf59","html_url":"https://github.com/javiorfo/nvim-spinetta","commit_stats":null,"previous_names":["charkuils/nvim-spinetta","javiorfo/nvim-spinetta","caosystema/nvim-spinetta","progrimorio/nvim-spinetta","orfosys/nvim-spinetta","chaosystema/nvim-spinetta"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-spinetta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-spinetta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-spinetta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fnvim-spinetta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiorfo","download_url":"https://codeload.github.com/javiorfo/nvim-spinetta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252583883,"owners_count":21771942,"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":["jobs","lua","neovim","neovim-plugin","neovim-spinner","spinner"],"created_at":"2024-11-30T01:11:33.577Z","updated_at":"2025-05-05T21:51:03.657Z","avatar_url":"https://github.com/javiorfo.png","language":"Lua","readme":"# nvim-spinetta\n*nvim-spinetta is a Neovim library written in Lua for using a spinner during a job process.*\n\n## Caveats\n- This library has been developed on and for Linux following open source philosophy.\n\n## Installation\n`Packer`\n```lua\nuse 'javiorfo/nvim-spinetta'\n```\n`Lazy`\n```lua\n{ 'javiorfo/nvim-spinetta' }\n```\n\n## Overview\n| Feature | nvim-spinetta | NOTE |\n| ------- | ------------- | ---- |\n| Spinners | :heavy_check_mark: | Includes 6 spinners |\n| Set your own spinner | :heavy_check_mark: |  |\n| Set a job | :heavy_check_mark: |  |\n| Set a another process not only a job | :heavy_check_mark: |  |\n| **start** function | :heavy_check_mark: | Several overloads |\n| On success option | :heavy_check_mark: | By the user |\n| On interruption option | :heavy_check_mark: | By the user or by an internal error |\n\n## Usage\n- By default the values by parameters are:\n```lua\n{\n    spinner = DEFAULT_SPINNER, -- List of figures to use in the spinner\n    speed_ms = 200,            -- Speed of the spinner in miliseconds\n    main_msg = \"\",             -- Initial message in spinner\n    on_success = nil,          -- Function to implement when the job is finished\n    on_interrupted = nil       -- Function to implement when the job is interrupted\n}\n```\n\n- First, create a instance:\n```lua\n    local spinetta = require'spinetta'\n    local my_spinner = spinetta:new()\n```\n\n- Second, start the spinner and the job:\n```lua\n    local my_job = \"curl https://host/path\" -- This is ilustrative, change it by your job to run\n    my_spinner:start(spinetta.job_to_run(my_job))\n```\n\n#### SPINNERS\n- Check the spinners availables in [this file](https://github.com/javiorfo/nvim-spinetta/blob/master/lua/spinetta/spinners.lua)\n- You can add your own spinner if you like. Further information in `:help spinetta`\n\n## Screenshots\n#### Examples of the differents spinners included in this plugin. Run `:luafile %` in [this file](https://github.com/javiorfo/nvim-spinetta/blob/master/examples/test_spinners.lua)\n\n\u003cimg src=\"https://github.com/javiorfo/img/blob/master/nvim-spinetta/spinetta.gif?raw=true\" alt=\"spinetta\" /\u003e\n\n#### Examples of interruption message included in this plugin. Run `:luafile %` and interrupt the process with `Ctrl-C` in [this file](https://github.com/javiorfo/nvim-spinetta/blob/master/examples/test_interruption.lua)\n\u003cimg src=\"https://github.com/javiorfo/img/blob/master/nvim-spinetta/interrupt.gif?raw=true\" alt=\"spinetta\" /\u003e\n\n**NOTE:** The colorscheme **nebula** from [nvim-nyctophilia](https://github.com/javiorfo/nvim-nyctophilia) is used in this image.\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","funding_links":["https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fnvim-spinetta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviorfo%2Fnvim-spinetta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fnvim-spinetta/lists"}