Try eglot-20220918.1019's recommended configuration method
This commit is contained in:
parent
7ae70fca70
commit
d2142c435e
64
README.org
64
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user