diff --git a/init.el b/init.el index cb212bf..c2194ba 100644 --- a/init.el +++ b/init.el @@ -1052,8 +1052,7 @@ :bind ( :map prog-mode-map ("C-c c a" . eglot-code-actions) ("C-c c r" . eglot-rename)) - :hook ((prog-mode . eglot-ensure) - (eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)))) + :hook ((prog-mode . eglot-ensure)) :custom (eglot-menu-string "lsp") (eglot-extend-to-xref t) @@ -1062,9 +1061,8 @@ (eglot-connect-timeout 300) (eglot-autoreconnect (* 60 5)) (eglot-events-buffer-config '(:size 0)) - :init - (setq eglot-stay-out-of '(flymake)) :config + (add-to-list 'eglot-server-programs '((python-mode python-ts-mode) "basedpyright" "--stdio")) (add-to-list 'eglot-server-programs '(scad-mode "openscad-lsp")) (setq-default eglot-workspace-configuration '( :basedpyright ( :typeCheckingMode "recommended"