1
0
Fork 0

fix(emacs): migrate to eglot for java

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-01-18 17:12:23 -05:00
parent 46cf3f4749
commit e68e13829f
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 13 additions and 6 deletions

View file

@ -5,9 +5,12 @@
;; short), then it belongs here.
;;; Code:
(require 'lsp-mode)
(require 'lsp-java)
(require 'git-gutter)
(require 'elfeed)
(require 'neotree)
(require 'copilot)
(defun config-compile ()
"(Re)compile the current Emacs configuration."
@ -59,13 +62,16 @@
(setq lsp-ui-doc-header t)
(setq lsp-ui-doc-border (face-foreground 'default))
(setq lsp-ui-sideline-show-code-actions t)
(setq lsp-enable-file-watchers nil)
(setq lsp-log-max nil)
(setq lsp-enable-links nil)
(setq lsp-use-plists t)
(custom-set-faces
'(lsp-ui-doc-header ((t (:inherit nano-strong :background-color nano-dark-background)))))
(setq lsp-java-configuration-runtimes
'[(:name "JavaSE-21"
:path "/usr/lib/jvm/java-21-openjdk"
:default t)])
(setq read-process-output-max (* 4 1024 1024))
;; Git Gutter
(global-git-gutter-mode +1)