Skip to content

Commit

Permalink
- set darwin's eglot config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
xiliuya committed Sep 21, 2023
1 parent 3e2ae19 commit 0938403
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gdscript-eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ definitions of HOST, PORT, and INTERACTIVE.
For more context, see
https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg01070.html."
(save-excursion
(let* ((cfg-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))
(let* ((cfg-dir (or (getenv "XDG_CONFIG_HOME")
(pcase system-type
('darwin "~/Library/Application Support/Godot/")
('gnu/linux "~/.config/"))))
(cfg-buffer
(find-file-noselect
(expand-file-name
Expand Down

0 comments on commit 0938403

Please sign in to comment.