Skip to content

Commit

Permalink
Minor modifications to support working over TRAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
jagot committed Apr 12, 2023
1 parent 2e04597 commit fa408e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eglot-jl.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
(require 'eglot)
(require 'project)

(defconst eglot-jl-base (file-name-directory load-file-name))
(defcustom eglot-jl-base (file-name-directory load-file-name)
"Base directory of eglot-jl"
:type 'string)

(defgroup eglot-jl nil
"Interaction with LanguageServer.jl LSP server via eglot"
Expand Down Expand Up @@ -78,7 +80,7 @@ Otherwise returns nil"
,(concat "--project=" eglot-jl-language-server-project)
,@eglot-jl-julia-flags
,(expand-file-name "eglot-jl.jl" eglot-jl-base)
,(file-name-directory (buffer-file-name))
,(file-name-directory (tramp-file-local-name (buffer-file-name)))
,eglot-jl-depot))

;;;###autoload
Expand Down

0 comments on commit fa408e1

Please sign in to comment.