{"id":19309659,"url":"https://github.com/roxma/nvim-ascript","last_synced_at":"2026-02-21T06:03:09.558Z","repository":{"id":82181166,"uuid":"106761872","full_name":"roxma/nvim-ascript","owner":"roxma","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-13T08:34:29.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T03:24:03.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roxma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-10-13T01:12:22.000Z","updated_at":"2022-10-13T07:09:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ff1d037-60b6-492d-95bb-fec15355aa4e","html_url":"https://github.com/roxma/nvim-ascript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roxma/nvim-ascript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fnvim-ascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fnvim-ascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fnvim-ascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fnvim-ascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roxma","download_url":"https://codeload.github.com/roxma/nvim-ascript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roxma%2Fnvim-ascript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266829038,"owners_count":23991222,"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-07-24T02:00:09.469Z","response_time":99,"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":"2024-11-10T00:20:07.942Z","updated_at":"2025-10-18T04:31:21.224Z","avatar_url":"https://github.com/roxma.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NVIM-ASCRIPT\n\nRun async python script easily without using neovim's rplugin or job feature\nexplicitly.\n\n## Motivation\n\nTo be honest, I don't like neovim's `UpdateRemotePlugins`, and sometims I just\nwant a small fragment of python/ruby code to be run async.\n\n## Installation\n\nAssuming you're using [vim-plug](https://github.com/junegunn/vim-plug)\n\n```\nPlug 'roxma/nvim-ascript'\n```\n\n## Usage\n\n```vim\npython3 \u003c\u003c EOF\ndef greet(name):\n    import vim\n    from time import time\n    t = time()\n    # delay for about 3s\n    while t + 3 \u003e= time():\n        pass\n    vim.command(\"echo 'hi %s'\" % name)\nEOF\n\ncall ascript#py3call('greet', 'roxma')\n```\n\n**Warning: Neovim's python script host uses greenlet, but it should still be\nconsidered single-threaded. So there're chances that it will interfere with\nother plugins using `:python` or `python3` feature, and then block the ui.  Be\ncareful with long run jobs.** \n\n## Functions\n\nRecommended:\n\n- `ascript#py3call(fn, ...)`\n- `ascript#pycall(fn, ...)`\n\nSuger missing in nvim's standard functions, note that these are not async\nfunctions.\n\n- `script#py3call(fn, ...)`\n- `script#pycall(fn, ...)`\n\nOthers:\n\n- `ascript#py3(script)`\n- `ascript#py(script)`\n- `ascript#ruby(script)`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxma%2Fnvim-ascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froxma%2Fnvim-ascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froxma%2Fnvim-ascript/lists"}