mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/java: don't install meghanada when compiling
This commit is contained in:
@ -13,10 +13,11 @@
|
|||||||
(add-hook 'java-mode-hook #'rainbow-delimiters-mode)
|
(add-hook 'java-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
||||||
;; Setup on first use
|
;; Setup on first use
|
||||||
(meghanada-install-server)
|
(unless (bound-and-true-p byte-compile-current-file)
|
||||||
(if (file-exists-p (meghanada--locate-server-jar))
|
(meghanada-install-server)
|
||||||
(add-hook! 'meghanada-mode-hook #'(flycheck-mode eldoc-mode))
|
(if (file-exists-p (meghanada--locate-server-jar))
|
||||||
(warn "java-mode: meghanada-server not installed, java-mode will run with reduced functionality"))
|
(add-hook! 'meghanada-mode-hook #'(flycheck-mode eldoc-mode))
|
||||||
|
(warn "java-mode: meghanada-server not installed, java-mode will run with reduced functionality")))
|
||||||
|
|
||||||
(set! :jump 'java-mode
|
(set! :jump 'java-mode
|
||||||
:definition #'meghanada-jump-declaration
|
:definition #'meghanada-jump-declaration
|
||||||
|
Reference in New Issue
Block a user