{"id":13419341,"url":"https://github.com/averms/black-nvim","last_synced_at":"2025-04-13T15:41:25.434Z","repository":{"id":37874586,"uuid":"149482361","full_name":"averms/black-nvim","owner":"averms","description":"A Neovim plugin to format your code using Black","archived":false,"fork":false,"pushed_at":"2022-09-15T08:35:10.000Z","size":50,"stargazers_count":79,"open_issues_count":5,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T22:47:14.027Z","etag":null,"topics":["neovim","neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","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/averms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-19T16:45:04.000Z","updated_at":"2024-07-30T09:42:50.000Z","dependencies_parsed_at":"2023-01-17T21:30:34.830Z","dependency_job_id":null,"html_url":"https://github.com/averms/black-nvim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Fblack-nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Fblack-nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Fblack-nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/averms%2Fblack-nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/averms","download_url":"https://codeload.github.com/averms/black-nvim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248739898,"owners_count":21154247,"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","neovim-plugin"],"created_at":"2024-07-30T22:01:14.631Z","updated_at":"2025-04-13T15:41:25.413Z","avatar_url":"https://github.com/averms.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# black-nvim\n\nA port of the [official black plugin] to Neovim's remote Python plugin interface.\n\nDifferences:\n\n- It runs asynchronously, so it won't block scrolling while formatting the buffer.\n- Checks if filetype is \"python\" before formatting.\n- More robust error handling and better error messages.\n- Missing some features (Upgrading the black package automatically, respecting\n  pyproject.toml).\n- Don't have to clone the entire source repo just to get the plugin.\n- Zero lines of Vimscript.\n\n[official black plugin]: https://github.com/ambv/black/tree/master/plugin/black.vim\n\n## Installation\n\nThe 'master' branch is stable. You can see what is coming up by looking at 'devel' but\nI wouldn't recommend using it.\n\n| Plugin manager | How to install                                             |\n|----------------|------------------------------------------------------------|\n| minpac         | `call minpac#add('averms/black-nvim')`                     |\n| dein.vim       | `call dein#add('averms/black-nvim')`                       |\n| vim-plug       | `Plug 'averms/black-nvim', {'do': ':UpdateRemotePlugins'}` |\n\nIf you don't already have a system for managing python environments on your computer\nI would recommend the following:\n\n- Make sure you have at least version 3.6.\n- Set up a virtual environment for use with neovim.\n  ```sh\n  mkdir -p ~/.local/venv \u0026\u0026 cd ~/.local/venv\n  python3 -m venv nvim\n  cd nvim\n  . ./bin/activate\n  pip install pynvim black\n  ```\n- Tell neovim about that environment like so:\n  ```vim\n  let g:python3_host_prog = $HOME . '/.local/venv/nvim/bin/python'\n  ```\n  If you're using vim-plug, this line needs to be before your `Plug` statement.\n- Run `:checkhealth`. The python3 provider section should be not-red.\n\n## Documentation\n\nSee [black.md](doc/black.md) or type `:h black.txt`.\n\n## License\n\nblack-nvim is distributed under the MIT/Expat license.\nSee LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverms%2Fblack-nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faverms%2Fblack-nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faverms%2Fblack-nvim/lists"}