From 6cbd592f51f939a2d9bd129cdb768a41fa00faf8 Mon Sep 17 00:00:00 2001 From: mndz <738092+0x6d6e647a@users.noreply.github.com> Date: Tue, 5 Sep 2023 03:09:57 -0700 Subject: [PATCH] Add support for python-lsp-server pyls-isort plugin. (#4163) * Add support for python-lsp-server pyls-isort plugin. * Spelling fix. --- clients/lsp-pylsp.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/lsp-pylsp.el b/clients/lsp-pylsp.el index a776029d1c0..9441ee8a17e 100644 --- a/clients/lsp-pylsp.el +++ b/clients/lsp-pylsp.el @@ -259,6 +259,11 @@ Drastically increases startup time." :type 'boolean :group 'lsp-pylsp) +(defcustom lsp-pylsp-plugins-isort-enabled nil + "Enable or disable the plugin." + :type 'boolean + :group 'lsp-pylsp) + (defcustom lsp-pylsp-rope-extension-modules nil "Builtin and c-extension modules that are allowed to be imported and inspected by rope." @@ -393,6 +398,7 @@ So it will rename only references it can find." ("pylsp.plugins.autopep8.enabled" lsp-pylsp-plugins-autopep8-enabled t) ("pylsp.plugins.yapf.enabled" lsp-pylsp-plugins-yapf-enabled t) ("pylsp.plugins.black.enabled" lsp-pylsp-plugins-black-enabled t) + ("pylsp.plugins.pyls_isort.enabled" lsp-pylsp-plugins-isort-enabled t) ("pylsp.plugins.rope_autoimport.enabled" lsp-pylsp-plugins-rope-autoimport-enabled t) ("pylsp.plugins.rope_autoimport.memory" lsp-pylsp-plugins-rope-autoimport-memory t) ("pylsp.plugins.rope_completion.enabled" lsp-pylsp-plugins-rope-completion-enabled t)