From d2142c435e36c039378fc349ef428d7b0e8e0e0c Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sun, 18 Sep 2022 16:27:40 +0200 Subject: [PATCH] Try eglot-20220918.1019's recommended configuration method --- README.org | 64 +++++++++++++++++++++++++++--------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/README.org b/README.org index adaac75..c187f44 100644 --- a/README.org +++ b/README.org @@ -3948,13 +3948,13 @@ the the verbosity of [[https://github.com/python-lsp/python-lsp-server][python-l (setq-default eglot-workspace-configuration ;; Disable the `:pyls_flake8' plugin to fall back to pycodestyle. - `((:pylsp . (:plugins - (:pyls_flake8 - (:enabled t) - :jedi - (:auto_import_modules ["numpy"]) - :jedi_completion - (:cache_for ["astropy"]))))))) + '(:pylsp (:plugins + (:pyls_flake8 + (:enabled t) + :jedi + (:auto_import_modules ["numpy"]) + :jedi_completion + (:cache_for ["astropy"])))))) #+end_src #+caption[Configure =eglot= with =python-lsp-server= sans =pyls_flake8=]: @@ -3964,24 +3964,24 @@ the the verbosity of [[https://github.com/python-lsp/python-lsp-server][python-l (with-eval-after-load 'eglot (setq-default eglot-workspace-configuration - '(;; How to use flake8 instead of pycodestyle officially, see: - ;; https://github.com/python-lsp/python-lsp-server#configuration - (:pylsp . (:configurationSources - ["flake8"] - :plugins - (:pycodestyle - (:enabled :json-false) - :mccabe - (:enabled :json-false) - :pyflakes - (:enabled - :json-false) - :flake8 - (:enabled t) - :jedi - (:auto_import_modules ["numpy"]) - :jedi_completion - (:cache_for ["astropy"]))))))) + ;; How to use flake8 instead of pycodestyle officially, see: + ;; https://github.com/python-lsp/python-lsp-server#configuration + '(:pylsp (:configurationSources + ["flake8"] + :plugins + (:pycodestyle + (:enabled :json-false) + :mccabe + (:enabled :json-false) + :pyflakes + (:enabled + :json-false) + :flake8 + (:enabled t) + :jedi + (:auto_import_modules ["numpy"]) + :jedi_completion + (:cache_for ["astropy"])))))) #+end_src #+caption[Propose =directory-variables= to launch =eglot=]: @@ -3993,13 +3993,13 @@ the the verbosity of [[https://github.com/python-lsp/python-lsp-server][python-l ((python-mode . ((eglot-workspace-configuration ;; Disable the `:pyls_flake8' plugin to fall back to pycodestyle. - . ((:pylsp . (:plugins - (:pyls_flake8 - (:enabled t) - :jedi - (:auto_import_modules ["numpy"]) - :jedi_completion - (:cache_for ["astropy"]))))))))) + . (:pylsp (:plugins + (:pyls_flake8 + (:enabled t) + :jedi + (:auto_import_modules ["numpy"]) + :jedi_completion + (:cache_for ["astropy"])))))))) #+end_src #+attr_latex: :booktabs yes :float table