Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stsewd/isort.nvim
Neovim plugin to sort Python imports using isort
https://github.com/stsewd/isort.nvim
isort neovim neovim-plugin python
Last synced: 9 days ago
JSON representation
Neovim plugin to sort Python imports using isort
- Host: GitHub
- URL: https://github.com/stsewd/isort.nvim
- Owner: stsewd
- License: mit
- Created: 2018-02-02T03:56:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-01T02:03:27.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:24:00.831Z (19 days ago)
- Topics: isort, neovim, neovim-plugin, python
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 28
- Watchers: 3
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Isort.nvim
Neovim plugin to sort python imports using [isort](https://github.com/timothycrosley/isort).
Inspired by [vim-isort](https://github.com/fisadev/vim-isort).
## Requirements
- [Isort](https://github.com/timothycrosley/isort) (`pip install isort`).
- The `isort` command must be on your `PATH`.
- Make sure that you install the latest version of isort (or at least >=5.7.0)## Install
Install using [vim-plug](https://github.com/junegunn/vim-plug).
Put this on your `init.vim`.```vim
Plug 'stsewd/isort.nvim', { 'do': ':UpdateRemotePlugins' }
```## Usage
Call `:Isort` and it will sort the imports of the current buffer.
You can also pass a range via the visual mode._All arguments of the command will be passed to isort_.
Alternatively, use `:IsortSync` if you need the operation to complete
synchronously (e.g. in a BufWritePre autocmd).## Configuration
Isort command.
```vim
g:isort_command = 'isort'
```## Differences with vim-isort
- No need to install isort on the same python environment.
- Pure python implementation.
- Neovim only.