From cd54ba5eb9750f04be2af8a94506c0992d59251c Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Wed, 25 Jun 2025 22:31:12 -0700 Subject: [PATCH] Add LSP config for basedpyright --- emacs/init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs/init.el b/emacs/init.el index d73e3a2..ada3ec5 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -823,6 +823,13 @@ (setq major-mode-remap-alist '((python-mode . python-ts-mode))) +(use-package lsp-pyright + :ensure t + :custom (lsp-pyright-langserver-command "basedpyright") + :hook (python-ts-mode . (lambda () + (require 'lsp-pyright) + (lsp)))) + (setq lsp-pylsp-plugins-flake8-ignore '("D100" "D101" "D102"))