From 41ff76637937bf0b8f16d00b3c3595061b164de2 Mon Sep 17 00:00:00 2001 From: Reinhard Stahn Date: Fri, 21 Jun 2024 19:59:36 +0200 Subject: [PATCH] Add additional custom variables for pylsp --- clients/lsp-pylsp.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/clients/lsp-pylsp.el b/clients/lsp-pylsp.el index 67bb28256b..2406caad8f 100644 --- a/clients/lsp-pylsp.el +++ b/clients/lsp-pylsp.el @@ -234,6 +234,16 @@ Drastically increases startup time." :type 'boolean :group 'lsp-pylsp) +(defcustom lsp-pylsp-plugins-rope-autoimport-completions-enabled nil + "Enable or disable completions from rope-autoimport." + :type 'boolean + :group 'lsp-pylsp) + +(defcustom lsp-pylsp-plugins-rope-autoimport-code-actions-enabled nil + "Enable or disable code actions from rope-autoimport." + :type 'boolean + :group 'lsp-pylsp) + (defcustom lsp-pylsp-plugins-rope-completion-enabled nil "Enable or disable the plugin." :type 'boolean @@ -583,6 +593,8 @@ So it will rename only references it can find." ("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_autoimport.completions.enabled" lsp-pylsp-plugins-rope-autoimport-completions-enabled t) + ("pylsp.plugins.rope_autoimport.code_actions.enabled" lsp-pylsp-plugins-rope-autoimport-code-actions-enabled t) ("pylsp.plugins.rope_completion.enabled" lsp-pylsp-plugins-rope-completion-enabled t) ("pylsp.plugins.rope_completion.eager" lsp-pylsp-plugins-rope-completion-eager t) ("pylsp.plugins.pyflakes.enabled" lsp-pylsp-plugins-pyflakes-enabled t)