lang/csharp: fix omnisharp detection when server is installed locally #422
This commit is contained in:
parent
45c8ce9f62
commit
8af46aad5a
1 changed files with 3 additions and 2 deletions
|
@ -11,8 +11,9 @@
|
||||||
(setq omnisharp-auto-complete-want-documentation nil
|
(setq omnisharp-auto-complete-want-documentation nil
|
||||||
omnisharp-cache-directory (concat doom-cache-dir "omnisharp"))
|
omnisharp-cache-directory (concat doom-cache-dir "omnisharp"))
|
||||||
:config
|
:config
|
||||||
(unless (file-exists-p (omnisharp--server-installation-path t))
|
(let ((omnisharp-bin (or omnisharp-server-executable-path (omnisharp--server-installation-path t))))
|
||||||
(warn! "Omnisharp server isn't installed, completion won't work"))
|
(unless (file-exists-p omnisharp-bin)
|
||||||
|
(warn! "Omnisharp server isn't installed, completion won't work")))
|
||||||
|
|
||||||
(add-hook! csharp-mode #'(eldoc-mode flycheck-mode omnisharp-mode))
|
(add-hook! csharp-mode #'(eldoc-mode flycheck-mode omnisharp-mode))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue