Awesome
python-lsp-isort
isort plugin for the Python LSP Server.
Install
In the same virtualenv
as python-lsp-server
:
pip install python-lsp-isort
Configuration
The plugin follows python-lsp-server's configuration. These are the valid configuration keys:
pylsp.plugins.isort.enabled
: boolean to enable/disable the plugin.true
by default.pylsp.plugins.isort.*
: any other key-value pair underpylsp.plugins.isort
is passed toisort.settings.Config
. See the reference for details.
Note that any configurations passed to isort via pylsp
are ignored when isort detects a config file, such as pyproject.toml
.