You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin for sorting Python imports in Vim and Neovim via isort. Inspired by
fisadev/vim-isort, but with a few
differentiating features:
Written in VimScript instead of Python: this is faster, less sensitive to
virtual environment issues, and runs on vim builds without the +python
feature.
Adds automatic detection for first-party package names, by searching parent
directories for setup.py or pyproject.toml files.
Attempts to be minimally obtrusive: runs asynchronously where possible, with
support for both Vim 8 and Neovim’s job APIs.
More advanced usage is possible with the
isort#Isort(startline, endline, [callback, [enable_async]]) function. For example, one option is
to use vim-codefmt to format after
sorting: