Neovim plugin to sort python imports using isort.
Inspired by vim-isort.
- Isort (
pip install isort
). - The
isort
command must be on yourPATH
.
Install using vim-plug.
Put this on your init.vim
.
Plug 'stsewd/isort.nvim', { 'for': 'python', 'do': ':UpdateRemotePlugins' }
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.
Isort command.
g:isort_command = 'isort'