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,22 +79,24 @@ 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
|
||||
( :jedi_completion
|
||||
( :enabled t
|
||||
:include_params t
|
||||
:include_class_objects t
|
||||
:include_function_objects t
|
||||
:fuzzy t)
|
||||
:jedi_definition (:enabled t)
|
||||
:jedi_hover (:enabled t)))
|
||||
:nil
|
||||
( :nix
|
||||
( :maxMemoryMB nil
|
||||
:flake
|
||||
( :autoArchive t
|
||||
:nixpkgsInputName "nixpkgs")))))
|
||||
'( :pylsp ( :plugins
|
||||
( :jedi_completion
|
||||
( :enabled t
|
||||
:include_params t
|
||||
:include_class_objects t
|
||||
:include_function_objects t
|
||||
:fuzzy t)
|
||||
:jedi_definition (:enabled t)
|
||||
:jedi_hover (:enabled t)))
|
||||
: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
|
||||
:nixpkgsInputName "nixpkgs")))))
|
||||
(with-eval-after-load 'cape
|
||||
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||
(defun my/eglot-capf ()
|
||||
|
|
Loading…
Reference in a new issue