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
|
||||
(setq eglot-stay-out-of '(flymake))
|
||||
(setq-default eglot-workspace-configuration
|
||||
'( :pylsp
|
||||
( :plugins
|
||||
'( :pylsp ( :plugins
|
||||
( :jedi_completion
|
||||
( :enabled t
|
||||
:include_params t
|
||||
|
@ -89,8 +88,11 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
|||
:fuzzy t)
|
||||
:jedi_definition (:enabled t)
|
||||
:jedi_hover (:enabled t)))
|
||||
:nil
|
||||
( :nix
|
||||
:pyright ( :disableOrganizeImports t) ; Use isort instead
|
||||
:python.analysis ( :autoImportCompletions t
|
||||
:diagnosticMode "openFilesOnly" ; Better single-file support
|
||||
:typeCheckingMode "off") ; Use mypy instead
|
||||
:nil ( :nix
|
||||
( :maxMemoryMB nil
|
||||
:flake
|
||||
( :autoArchive t
|
||||
|
|
Loading…
Reference in a new issue