diff --git a/modules/lang/csharp/doctor.el b/modules/lang/csharp/doctor.el index 82c1c191d..b9a56317f 100644 --- a/modules/lang/csharp/doctor.el +++ b/modules/lang/csharp/doctor.el @@ -1,7 +1,7 @@ ;; -*- lexical-binding: t; no-byte-compile: t; -*- ;;; lang/csharp/doctor.el -(require 'omnisharp) -(let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t)))) - (unless (file-exists-p omnisharp-bin) - (warn! "Omnisharp server isn't installed, completion won't work"))) +(when (and (require 'omnisharp nil t) (not (featurep! +lsp))) + (let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t)))) + (unless (file-exists-p omnisharp-bin) + (warn! "Omnisharp server isn't installed, completion won't work"))))