Add pyright config
Hopefully better single-file support, better support for use with mypy and isort
This commit is contained in:
parent
662846fd25
commit
7dd0e0f4ed
|
@ -79,8 +79,7 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
||||||
:config
|
:config
|
||||||
(setq eglot-stay-out-of '(flymake))
|
(setq eglot-stay-out-of '(flymake))
|
||||||
(setq-default eglot-workspace-configuration
|
(setq-default eglot-workspace-configuration
|
||||||
'( :pylsp
|
'( :pylsp ( :plugins
|
||||||
( :plugins
|
|
||||||
( :jedi_completion
|
( :jedi_completion
|
||||||
( :enabled t
|
( :enabled t
|
||||||
:include_params t
|
:include_params t
|
||||||
|
@ -89,8 +88,11 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
||||||
:fuzzy t)
|
:fuzzy t)
|
||||||
:jedi_definition (:enabled t)
|
:jedi_definition (:enabled t)
|
||||||
:jedi_hover (:enabled t)))
|
:jedi_hover (:enabled t)))
|
||||||
:nil
|
:pyright ( :disableOrganizeImports t) ; Use isort instead
|
||||||
( :nix
|
:python.analysis ( :autoImportCompletions t
|
||||||
|
:diagnosticMode "openFilesOnly" ; Better single-file support
|
||||||
|
:typeCheckingMode "off") ; Use mypy instead
|
||||||
|
:nil ( :nix
|
||||||
( :maxMemoryMB nil
|
( :maxMemoryMB nil
|
||||||
:flake
|
:flake
|
||||||
( :autoArchive t
|
( :autoArchive t
|
||||||
|
|
Loading…
Reference in a new issue