diff --git a/README.org b/README.org index de75445..59a3a0a 100644 --- a/README.org +++ b/README.org @@ -3334,16 +3334,16 @@ the information to [[https://github.com/python-lsp/python-lsp-server][python-lsp #+name: lst:show-pylsp-server-patch #+begin_src diff :tangle no diff --git a/pylsp/config/schema.json b/pylsp/config/schema.json -index d21027d..7ca0659 100644 +index 860ccc1..44d80c9 100644 --- a/pylsp/config/schema.json +++ b/pylsp/config/schema.json -@@ -69,6 +69,14 @@ - "default": null, +@@ -82,6 +82,14 @@ + "uniqueItems": true, "description": "List of errors and warnings to enable." }, + "pylsp.plugins.jedi.auto_import_modules": { + "type": "array", -+ "default": ["numpy", "gi"], ++ "default": ["numpy", "gi"], + "items": { + "type": "string" + }, diff --git a/pylsp-auto-import-modules.patch b/pylsp-auto-import-modules.patch index 3b61792..073be79 100644 --- a/pylsp-auto-import-modules.patch +++ b/pylsp-auto-import-modules.patch @@ -1,14 +1,14 @@ diff --git a/pylsp/config/schema.json b/pylsp/config/schema.json -index d21027d..7ca0659 100644 +index 860ccc1..44d80c9 100644 --- a/pylsp/config/schema.json +++ b/pylsp/config/schema.json -@@ -69,6 +69,14 @@ - "default": null, +@@ -82,6 +82,14 @@ + "uniqueItems": true, "description": "List of errors and warnings to enable." }, + "pylsp.plugins.jedi.auto_import_modules": { + "type": "array", -+ "default": ["numpy", "gi"], ++ "default": ["numpy", "gi"], + "items": { + "type": "string" + },