Skip to content

Commit

Permalink
refactor(early-init): move LSP_USE_PLISTS to me-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 13, 2024
1 parent 056bfe8 commit d1aa86a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@
(push (cons 'alpha-background (if (or (zerop alpha) (> alpha 100)) 93 alpha))
default-frame-alist)))

;; HACK: In `lsp-mode' (see the `me-lsp' module), the user can define the
;; `$LSP_USE_PLISTS=true` to improve `lsp-mode' performances. We set this
;; environment variable here so we don't need to add it to the system's
;; environment variables.
(setenv "LSP_USE_PLISTS" "true")

;; Load MinEmacs variables from the `me-vars' core module.
(load (expand-file-name "core/me-vars.el" (file-name-directory (file-truename load-file-name))) nil t)

Expand Down
4 changes: 4 additions & 0 deletions modules/me-lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
(use-package lsp-mode
:straight t
:preface
;; HACK: Define the `$LSP_USE_PLISTS=true` to improve `lsp-mode' performances.
;; We set this environment variable here so we don't need to relay on the
;; system's environment variables.
(setenv "LSP_USE_PLISTS" "true")
(setq lsp-use-plists t)
:custom
(lsp-session-file (concat minemacs-local-dir "lsp/session.el"))
Expand Down

0 comments on commit d1aa86a

Please sign in to comment.