Add pyright config

Hopefully better single-file support, better support for use with mypy
and isort
This commit is contained in:
Evie Litherland-Smith 2024-03-24 11:42:11 +00:00
parent 662846fd25
commit 7dd0e0f4ed

View file

@ -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