mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/csharp: fix omnisharp server integration
This commit is contained in:
@ -7,10 +7,11 @@
|
||||
:after csharp-mode
|
||||
:preface
|
||||
(setq omnisharp-auto-complete-want-documentation nil
|
||||
omnisharp-server-executable-path (concat doom-local-dir "OmniSharp.exe"))
|
||||
omnisharp-cache-directory (concat doom-cache-dir "omnisharp"))
|
||||
:config
|
||||
(if (file-exists-p omnisharp-server-executable-path)
|
||||
(add-hook! csharp-mode #'(eldoc-mode flycheck-mode omnisharp-mode))
|
||||
(add-hook! csharp-mode #'(eldoc-mode flycheck-mode omnisharp-mode))
|
||||
|
||||
(unless (file-exists-p (omnisharp--server-installation-path t))
|
||||
(warn "csharp-mode: omnisharp server isn't installed, completion won't work"))
|
||||
|
||||
(set! :company-backend 'csharp-mode '(company-omnisharp))
|
||||
|
Reference in New Issue
Block a user